summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/urbanterror
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-06-27 18:22:49 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-06-27 18:22:49 -0400
commitb2cecea8509fdc015aee826895cdac0b888802ef (patch)
tree9c0ac4af16eb98f4af8538e0eede952163f2d9d3 /pts/test-resources/urbanterror
parentbc0c2c13ddd575a0202b3444a7753cb0c729c1f5 (diff)
downloadphoronix-test-suite-upstream-b2cecea8509fdc015aee826895cdac0b888802ef.tar.gz
phoronix-test-suite-upstream-b2cecea8509fdc015aee826895cdac0b888802ef.tar.xz
phoronix-test-suite-upstream-b2cecea8509fdc015aee826895cdac0b888802ef.zip
Add urbanterror test profile for Urban Terror FPS game
Diffstat (limited to 'pts/test-resources/urbanterror')
-rw-r--r--pts/test-resources/urbanterror/downloads.xml13
-rwxr-xr-xpts/test-resources/urbanterror/install.sh25
-rwxr-xr-xpts/test-resources/urbanterror/parse-results.php6
3 files changed, 44 insertions, 0 deletions
diff --git a/pts/test-resources/urbanterror/downloads.xml b/pts/test-resources/urbanterror/downloads.xml
new file mode 100644
index 0000000..84918b2
--- /dev/null
+++ b/pts/test-resources/urbanterror/downloads.xml
@@ -0,0 +1,13 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>ftp://ftp.snt.utwente.nl/pub/games/urbanterror/UrbanTerror_41_FULL.zip, http://mirror.kickassctf.com/UrbanTerror_41_FULL.zip, http://mrsentry.net/release/UrbanTerror_41_FULL.zip</URL>
+ <MD5>1370306ea236f65f595e7ca70765e469</MD5>
+ </Package>
+ <Package>
+ <URL>http://www.phoronix-test-suite.com/benchmark-files/urbanterror-q3ut4-1.tar.gz, http://www.phoronix.net/downloads/phoronix-test-suite/benchmark-files/urbanterror-q3ut4-1.tar.gz</URL>
+ <MD5>5088d4dcee2a45de73352f59f9c51fb6</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
+
diff --git a/pts/test-resources/urbanterror/install.sh b/pts/test-resources/urbanterror/install.sh
new file mode 100755
index 0000000..2cc98cd
--- /dev/null
+++ b/pts/test-resources/urbanterror/install.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+unzip -o UrbanTerror_41_FULL.zip
+
+cd UrbanTerror/
+chmod +x ioUrbanTerror.i386
+chmod +x ioUrbanTerror.x86_64
+cd ..
+
+tar -xvf urbanterror-q3ut4-1.tar.gz
+mv -f autoexec.cfg UrbanTerror/q3ut4/
+mv -f pts1.dm_68 UrbanTerror/q3ut4/demos/
+
+echo "#!/bin/sh
+cd UrbanTerror/
+
+case \$OS_ARCH in
+ \"x86_64\" )
+ ./ioUrbanTerror.x86_64 \$@ 2>&1 | grep fps
+ ;;
+ * )
+ ./ioUrbanTerror.i386 \$@ 2>&1 | grep fps
+ ;;
+esac" > urbanterror
+chmod +x urbanterror
diff --git a/pts/test-resources/urbanterror/parse-results.php b/pts/test-resources/urbanterror/parse-results.php
new file mode 100755
index 0000000..f75e04d
--- /dev/null
+++ b/pts/test-resources/urbanterror/parse-results.php
@@ -0,0 +1,6 @@
+<?php
+
+$BENCHMARK_RESULTS = trim(substr($argv[1], 0, strrpos($argv[1], " fps")));
+$BENCHMARK_RESULTS = trim(substr($BENCHMARK_RESULTS, strrpos($BENCHMARK_RESULTS, ' ')));
+echo $BENCHMARK_RESULTS;
+?>