summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/quake4
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-04-29 11:23:21 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-04-29 11:23:21 -0400
commitd2993872f1e7598e90e22cada8d58fabcb6443c1 (patch)
treee104a8cca259dcce012c95f3a7d311c1f9981fdd /pts/test-resources/quake4
parentd8f940cde35c8423043bd37c58f00f57e901e66b (diff)
downloadphoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.tar.gz
phoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.tar.xz
phoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.zip
Change benchmark-profiles/, benchmark-resources/, and benchmark-suites/ to test-profiles/, test-resources/, and test-suites/
Diffstat (limited to 'pts/test-resources/quake4')
-rw-r--r--pts/test-resources/quake4/downloads.xml8
-rwxr-xr-xpts/test-resources/quake4/install.sh25
-rw-r--r--pts/test-resources/quake4/parse-results.php5
3 files changed, 38 insertions, 0 deletions
diff --git a/pts/test-resources/quake4/downloads.xml b/pts/test-resources/quake4/downloads.xml
new file mode 100644
index 0000000..a231e08
--- /dev/null
+++ b/pts/test-resources/quake4/downloads.xml
@@ -0,0 +1,8 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>ftp://ftp.idsoftware.com/idstuff/quake4/linux/quake4-linux-1.4.2.x86.run</URL>
+ <MD5>bd2cb8164ede4272adcc091f724855ac</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/quake4/install.sh b/pts/test-resources/quake4/install.sh
new file mode 100755
index 0000000..8dcf5c4
--- /dev/null
+++ b/pts/test-resources/quake4/install.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+cd $1
+
+if [ ! -f quake4-demo.tar.bz2 ]
+ then
+ wget http://www.phoronix-test-suite.com/benchmark-files/quake4-demo-1.tar.bz2 -O quake4-demo.tar.bz2
+fi
+
+chmod +x quake4-linux-1.4.2.x86.run
+
+./quake4-linux-1.4.2.x86.run --noexec --target .
+ln bin/Linux/x86/quake4.x86 quake4-real
+chmod +x quake4-real
+
+echo "#!/bin/sh
+./quake4-real \$@ | grep fps" > quake4
+chmod +x quake4
+
+tar -jxvf quake4-demo.tar.bz2
+mkdir q4base/demos
+mv -f pts.demo q4base/demos/pts.demo
+
+echo "Quake 4 Game Files (*.pk4) Must Be Copied Into $1/q4base"
+echo "Also Copy Your Game Key File To ~/.quake4/q4base/quake4key (If Not Already There)"
diff --git a/pts/test-resources/quake4/parse-results.php b/pts/test-resources/quake4/parse-results.php
new file mode 100644
index 0000000..6cf5b34
--- /dev/null
+++ b/pts/test-resources/quake4/parse-results.php
@@ -0,0 +1,5 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "seconds =") + 9);
+echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "fps")));
+?>