[Branch,~linaro-validation/lava-test/trunk] Rev 135: added gator test

Message ID 20120322135513.11713.26048.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Le Chi Thu March 22, 2012, 1:55 p.m.
Merge authors:
  David Stubbs (stubbsdm)
Related merge proposals:
  https://code.launchpad.net/~stubbsdm/lava-test/add-gatortests/+merge/97853
  proposed by: David Stubbs (stubbsdm)
  review: Approve - Le Chi Thu (le-chi-thu)
  review: Approve - Zygmunt Krynicki (zkrynicki)
  review: Resubmit - David Stubbs (stubbsdm)
------------------------------------------------------------
revno: 135 [merge]
committer: Le Chi Thu le.chi.thu@linaro.org <le.chi.thu@linaro.org>
branch nick: trunk
timestamp: Thu 2012-03-22 14:43:07 +0100
message:
  added gator test
added:
  lava_test/test_definitions/gatortests.py
modified:
  doc/changes.rst
  doc/tests.rst
  lava_test/core/providers.py


--
lp:lava-test
https://code.launchpad.net/~linaro-validation/lava-test/trunk

You are subscribed to branch lp:lava-test.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-test/trunk/+edit-subscription

Patch

=== modified file 'doc/changes.rst'
--- doc/changes.rst	2012-03-12 13:18:46 +0000
+++ doc/changes.rst	2012-03-16 12:41:05 +0000
@@ -1,8 +1,12 @@ 
 Version History
 ***************
-
+ 
+ * Add gatortests from dmstubbs. These tests initially check the apt-get process
+   for installing the gator module and gatord used for DS-5 streamline support.
+   The tests also check the module is inserted and that gatord is running.
  * Add reset command
 
+
 .. _version_0_5:
 
 Version 0.5

=== modified file 'doc/tests.rst'
--- doc/tests.rst	2012-02-24 18:39:28 +0000
+++ doc/tests.rst	2012-03-16 11:23:01 +0000
@@ -10,6 +10,7 @@ 
  * `bootchart`_
  * `e2eaudiotest`_
  * `firefox`_
+ * `gatortests`_	
  * `glmemperf`_
  * `gmpbench`_
  * `gtkperf`_
@@ -45,6 +46,10 @@ 
 +++++++
 .. automodule:: lava_test.test_definitions.firefox
 
+gatortests
+++++++++++
+.. automodule:: lava_test.test_definitions.gatortests
+
 glmemperf
 +++++++++
 .. automodule:: lava_test.test_definitions.glmemperf

=== modified file 'lava_test/core/providers.py'
--- lava_test/core/providers.py	2012-03-08 18:15:41 +0000
+++ lava_test/core/providers.py	2012-03-16 15:01:57 +0000
@@ -32,6 +32,7 @@ 
         'insanity',
         'e2eaudiotest',
         'firefox',
+        'gatortests',
         'glmemperf',
         'gmpbench',
         'gtkperf',

=== added file 'lava_test/test_definitions/gatortests.py'
--- lava_test/test_definitions/gatortests.py	1970-01-01 00:00:00 +0000
+++ lava_test/test_definitions/gatortests.py	2012-03-16 12:41:05 +0000
@@ -0,0 +1,41 @@ 
+
+# Copyright (c) 2010, 2011, 2012  Linaro
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+"""
+gatortests  - tests for streamline gator driver and daemon
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+"""
+
+from lava_test.core.installers import TestInstaller
+from lava_test.core.parsers import TestParser
+from lava_test.core.runners import TestRunner
+from lava_test.core.tests import Test
+
+
+INSTALLSTEPS = ['bzr branch lp:~stubbsdm/+junk/gator-tests']
+RUNSTEPS = ["python gator-tests/gatortests.py"]
+PATTERN = "^\*\*\*(?P<test_case_id>\w+):\s(?P<result>\w+)\*\*\*"
+
+
+DEFAULT_OPTIONS = ""
+
+installer = TestInstaller(INSTALLSTEPS, deps=["python"])
+runner = TestRunner(RUNSTEPS,default_options=DEFAULT_OPTIONS)
+parser = TestParser(pattern=PATTERN)
+testobj = Test(test_id="gatortests", installer=installer,runner=runner, parser=parser)
+
+