~le-chi-thu/lava-test/add-verbose-argument

« back to all changes in this revision

Viewing changes to lava_test/test_definitions/x11perf.py

  • Committer: Paul Larson
  • Date: 2011-09-22 17:58:01 UTC
  • mfrom: (92.1.4 using-lava-tool-2)
  • Revision ID: paul.larson@canonical.com-20110922175801-l99rky1xxsr6k3fn
Big refactoring branch to make lava-test use lava-tool.  Thanks to
Zygmunt and ChiThu!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (c) 2010 Linaro
 
1
# Copyright (c) 2010, 2011 Linaro
2
2
#
3
3
# This program is free software: you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
14
14
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
#
16
16
 
17
 
import abrek.testdef
 
17
 
 
18
from lava_test.core.installers import TestInstaller
 
19
from lava_test.core.parsers import TestParser
 
20
from lava_test.core.runners import TestRunner
 
21
from lava_test.core.tests import Test
 
22
 
18
23
 
19
24
x11perf_options = "-repeat 3"
20
25
 
44
49
RUNSTEPS = ["x11perf %s %s" % (x11perf_options,  " ".join(x11perf_tests))]
45
50
PATTERN = "trep @.*\(\W*(?P<measurement>\d+.\d+)/sec\):\W+(?P<test_case_id>.+)"
46
51
 
47
 
inst = abrek.testdef.AbrekTestInstaller(deps=["x11-apps"])
48
 
run = abrek.testdef.AbrekTestRunner(RUNSTEPS)
49
 
parse = abrek.testdef.AbrekTestParser(PATTERN,
 
52
inst = TestInstaller(deps=["x11-apps"])
 
53
run = TestRunner(RUNSTEPS)
 
54
parse = TestParser(PATTERN,
50
55
                                      appendall={'units':'reps/s',
51
56
                                                 'result':'pass'})
52
57
 
53
 
testobj = abrek.testdef.AbrekTest(testname="x11perf", installer=inst,
 
58
testobj = Test(test_id="x11perf", installer=inst,
54
59
                                  runner=run, parser=parse)