Merge lp:~afrantzis/lava-test/x11perf into lp:lava-test/0.0

Proposed by Alexandros Frantzis
Status: Merged
Merged at revision: 50
Proposed branch: lp:~afrantzis/lava-test/x11perf
Merge into: lp:lava-test/0.0
Diff against target: 42 lines (+38/-0)
1 file modified
abrek/test_definitions/x11perf.py (+38/-0)
To merge this branch: bzr merge lp:~afrantzis/lava-test/x11perf
Reviewer Review Type Date Requested Status
Paul Larson Pending
Review via email: mp+37248@code.launchpad.net

Description of the change

Add x11perf test definition.

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

"test_case_id": "Fill 2x300 aa trap",
Noticed this in the results. Dashboard apparently doesn't deal with spaces in the id. For now at least, we will need to convert these to _. Also the ()'s in some of them will have to be stripped.
a-zA-Z0-9_-. are the only legal characters for it

Also, if you could add the boilerplate license header, that would be great. Otherwise I can add that myself.

Thanks!

Revision history for this message
Paul Larson (pwlars) wrote :

I made some changes to deal with the above comments and merged.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'abrek/test_definitions/x11perf.py'
2--- abrek/test_definitions/x11perf.py 1970-01-01 00:00:00 +0000
3+++ abrek/test_definitions/x11perf.py 2010-10-01 13:21:06 +0000
4@@ -0,0 +1,38 @@
5+import abrek.testdef
6+
7+x11perf_options = "-repeat 3"
8+
9+x11perf_tests = [
10+ # Antialiased text (using XFT)
11+ "-aa10text",
12+ "-aa24text",
13+
14+ # Antialiased drawing (using XRENDER)
15+ "-aatrapezoid300",
16+ "-aatrap2x300",
17+
18+ # Normal blitting
19+ "-copypixwin500",
20+ "-copypixpix500",
21+
22+ # Composited blitting
23+ "-comppixwin500",
24+
25+ # SHM put image
26+ "-shmput500",
27+ "-shmputxy500",
28+
29+ "-scroll500",
30+ ]
31+
32+RUNSTEPS = ["x11perf %s %s" % (x11perf_options, " ".join(x11perf_tests))]
33+PATTERN = "trep @.*\(\W*(?P<measurement>\d+.\d+)/sec\):\W+(?P<test_case_id>.+)"
34+
35+inst = abrek.testdef.AbrekTestInstaller(deps=["x11-apps"])
36+run = abrek.testdef.AbrekTestRunner(RUNSTEPS)
37+parse = abrek.testdef.AbrekTestParser(PATTERN,
38+ appendall={'units':'reps/s',
39+ 'result':'pass'})
40+
41+testobj = abrek.testdef.AbrekTest(testname="x11perf", installer=inst,
42+ runner=run, parser=parse)

Subscribers

People subscribed via source and target branches