diff mbox

[Branch,~linaro-validation/lava-test/trunk] Rev 91: Add pwrmgmt changes for the updated tests from dlezcano

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

Commit Message

Paul Larson Sept. 2, 2011, 2:54 a.m. UTC
------------------------------------------------------------
revno: 91
committer: Paul Larson <paul.larson@canonical.com>
branch nick: lava-test-pmqa
timestamp: Mon 2011-08-29 10:34:03 -0500
message:
  Add pwrmgmt changes for the updated tests from dlezcano
modified:
  abrek/test_definitions/pwrmgmt.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
diff mbox

Patch

=== modified file 'abrek/test_definitions/pwrmgmt.py'
--- abrek/test_definitions/pwrmgmt.py	2011-03-10 17:18:26 +0000
+++ abrek/test_definitions/pwrmgmt.py	2011-08-29 15:34:03 +0000
@@ -16,21 +16,30 @@ 
 import abrek.testdef
 
 
-INSTALLSTEPS = ['git clone git://git.linaro.org/people/torez/pm-qa.git',
+INSTALLSTEPS = ['git clone git://git.linaro.org/tools/pm-qa.git',
                 'cd pm-qa && make clean && make all']
-RUNSTEPS = ['cd pm-qa && awk -f testcases.awk  run_template']
-DEPS = ['git-core', 'make', 'alsa-utils', 'pulseaudio-utils', 'lame', 'festival', 'wget']
+RUNSTEPS = ['cd pm-qa && make check']
+DEPS = ['git-core', 'make']
 
 pwrmgmtinst = abrek.testdef.AbrekTestInstaller(INSTALLSTEPS, deps=DEPS)
 pwrmgmtrun = abrek.testdef.AbrekTestRunner(RUNSTEPS)
 
-# test case name is between "pm-qa-"  and  ":"  and results and/or
-# measurements are rest of the line
-PATTERN = "^pm-qa-(?P<test_case_id>\w+):\s+(?P<message>.*)"
-
-
-pwrmgmtparser = abrek.testdef.AbrekTestParser(PATTERN,
-    appendall={'result':'pass'})
+# test case name is before  ":" , the test log is between ":" and "...", the result is after "..."
+# Each test case is separated with a test description beginning with "#"
+
+# Example:
+####
+#### cpufreq_02:
+#### test the cpufreq framework is available for governor
+####
+#cpufreq_02.0/cpu0: checking scaling_available_governors exists...           pass
+#cpufreq_02.1/cpu0: checking scaling_governor exists...                      pass
+#cpufreq_02.0/cpu1: checking scaling_available_governors exists...           pass
+#cpufreq_02.1/cpu1: checking scaling_governor exists...                      pass
+
+PATTERN = "^(?P<test_case_id>[\w/\.]+):\s+(?P<message>.+)\.\.\.\s+(?P<result>\w+)"
+
+pwrmgmtparser = abrek.testdef.AbrekTestParser(PATTERN)
 
 testobj = abrek.testdef.AbrekTest(testname="pwrmgmt", installer=pwrmgmtinst,
                                   runner=pwrmgmtrun, parser=pwrmgmtparser)