summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/x11perf
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-05-10 19:44:50 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-05-10 19:44:50 -0400
commitf83e2ce4025e690a662db9102731b0cb338c9796 (patch)
tree410a70761424ad696be65b8568cf43e9e8a11fc7 /pts/test-resources/x11perf
parent161236571ce389f0995d0f8bcbb73769641eedc0 (diff)
downloadphoronix-test-suite-upstream-f83e2ce4025e690a662db9102731b0cb338c9796.tar.gz
phoronix-test-suite-upstream-f83e2ce4025e690a662db9102731b0cb338c9796.tar.xz
phoronix-test-suite-upstream-f83e2ce4025e690a662db9102731b0cb338c9796.zip
Add initial x11perf test profile
Diffstat (limited to 'pts/test-resources/x11perf')
-rw-r--r--pts/test-resources/x11perf/downloads.xml8
-rw-r--r--pts/test-resources/x11perf/install.sh13
-rw-r--r--pts/test-resources/x11perf/parse-results.php6
3 files changed, 27 insertions, 0 deletions
diff --git a/pts/test-resources/x11perf/downloads.xml b/pts/test-resources/x11perf/downloads.xml
new file mode 100644
index 0000000..a076347
--- /dev/null
+++ b/pts/test-resources/x11perf/downloads.xml
@@ -0,0 +1,8 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://xorg.freedesktop.org/archive/individual/app/x11perf-1.5.tar.bz2</URL>
+ <MD5>31283bfc3c78718ac1bd71e510d4e774</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/x11perf/install.sh b/pts/test-resources/x11perf/install.sh
new file mode 100644
index 0000000..a433d5d
--- /dev/null
+++ b/pts/test-resources/x11perf/install.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+cd $1
+tar -xjf x11perf-1.5.tar.bz2
+cd x11perf-1.5/
+./configure
+make -j $NUM_CPU_JOBS
+cd ..
+
+echo "#!/bin/sh
+cd x11perf-1.5/
+./x11perf \$@" > x11perf
+chmod +x x11perf
diff --git a/pts/test-resources/x11perf/parse-results.php b/pts/test-resources/x11perf/parse-results.php
new file mode 100644
index 0000000..b1d5c68
--- /dev/null
+++ b/pts/test-resources/x11perf/parse-results.php
@@ -0,0 +1,6 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], 0, strrpos($argv[1], "/sec"));
+echo trim(substr($BENCHMARK_RESULTS, strrpos($BENCHMARK_RESULTS, " ")));
+
+?>