1
# Copyright (c) 2010 Linaro
3
# This program is free software: you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation, either version 3 of the License, or
6
# (at your option) any later version.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19
INSTALLSTEPS = ['git clone git://git.linaro.org/people/torez/pm-qa.git',
20
'cd pm-qa && make clean && make all']
21
RUNSTEPS = ['cd pm-qa && awk -f testcases.awk run_template']
22
DEPS = ['git-core', 'make']
24
pwrmgmtinst = abrek.testdef.AbrekTestInstaller(INSTALLSTEPS, deps=DEPS)
25
pwrmgmtrun = abrek.testdef.AbrekTestRunner(RUNSTEPS)
27
# test case name is between "pm-qa-" and ":" and results and/or
28
# measurements are rest of the line
29
PATTERN = "^pm-qa-(?P<test_case_id>\w+):\s+(?P<message>.*)"
32
pwrmgmtparser = abrek.testdef.AbrekTestParser(PATTERN,
33
appendall={'result':'pass'})
35
testobj = abrek.testdef.AbrekTest(testname="pwrmgmt", installer=pwrmgmtinst,
36
runner=pwrmgmtrun, parser=pwrmgmtparser)