~doanac/lava-test/stream-md5

« back to all changes in this revision

Viewing changes to abrek/test_definitions/x11perf.py

  • Committer: Paul Larson
  • Date: 2010-10-18 17:10:46 UTC
  • mfrom: (37.3.3 x11perf)
  • Revision ID: paul.larson@canonical.com-20101018171046-gvm9tqdcdzioptqg
Add x11perf test and also ad a fixids method to the parser that changes
spaces to _ and removes illegal characters from the test_case_id, until
dashboard can handle this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (c) 2010 Linaro
 
2
#
 
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.
 
7
#
 
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.
 
12
#
 
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/>.
 
15
#
 
16
 
 
17
import abrek.testdef
 
18
 
 
19
x11perf_options = "-repeat 3"
 
20
 
 
21
x11perf_tests = [
 
22
    # Antialiased text (using XFT)
 
23
    "-aa10text",
 
24
    "-aa24text",
 
25
 
 
26
    # Antialiased drawing (using XRENDER)
 
27
    "-aatrapezoid300",
 
28
    "-aatrap2x300",
 
29
 
 
30
    # Normal blitting
 
31
    "-copypixwin500",
 
32
    "-copypixpix500",
 
33
 
 
34
    # Composited blitting
 
35
    "-comppixwin500",
 
36
 
 
37
    # SHM put image
 
38
    "-shmput500",
 
39
    "-shmputxy500",
 
40
 
 
41
    "-scroll500",
 
42
    ]
 
43
 
 
44
RUNSTEPS = ["x11perf %s %s" % (x11perf_options,  " ".join(x11perf_tests))]
 
45
PATTERN = "trep @.*\(\W*(?P<measurement>\d+.\d+)/sec\):\W+(?P<test_case_id>.+)"
 
46
 
 
47
inst = abrek.testdef.AbrekTestInstaller(deps=["x11-apps"])
 
48
run = abrek.testdef.AbrekTestRunner(RUNSTEPS)
 
49
parse = abrek.testdef.AbrekTestParser(PATTERN,
 
50
                                      appendall={'units':'reps/s',
 
51
                                                 'result':'pass'})
 
52
 
 
53
testobj = abrek.testdef.AbrekTest(testname="x11perf", installer=inst,
 
54
                                  runner=run, parser=parse)