summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/warsow
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/warsow
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/warsow')
-rw-r--r--pts/test-resources/warsow/downloads.xml12
-rwxr-xr-xpts/test-resources/warsow/install.sh21
-rw-r--r--pts/test-resources/warsow/parse-results.php6
3 files changed, 39 insertions, 0 deletions
diff --git a/pts/test-resources/warsow/downloads.xml b/pts/test-resources/warsow/downloads.xml
new file mode 100644
index 0000000..88c81f0
--- /dev/null
+++ b/pts/test-resources/warsow/downloads.xml
@@ -0,0 +1,12 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://www.speltips.org/~web1_mans/files/warsow_0.42_unified.zip</URL>
+ <MD5>cba5fe9b8af01b378e685959098fa84f</MD5>
+ </Package>
+ <Package>
+ <URL>http://www.phoronix-test-suite.com/benchmark-files/pts-warsow-04.wd10</URL>
+ <MD5>26beb08a58d89c39d97dc728461d20de</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/warsow/install.sh b/pts/test-resources/warsow/install.sh
new file mode 100755
index 0000000..46578b8
--- /dev/null
+++ b/pts/test-resources/warsow/install.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+cd $1
+
+unzip -o warsow_0.42_unified.zip
+cp pts-warsow-04.wd10 warsow_0.42_unified/basewsw/demos
+cd warsow_0.42_unified/
+chmod +x warsow.x86_64
+chmod +x warsow.i386
+
+echo "#!/bin/sh
+cd warsow_0.42_unified/
+case \`uname -m\` in
+ \"x86_64\" )
+ ./warsow.x86_64 \$@ | grep fps
+ ;;
+ * )
+ ./warsow.i386 \$@ | grep fps
+ ;;
+esac" > warsow
+chmod +x warsow
diff --git a/pts/test-resources/warsow/parse-results.php b/pts/test-resources/warsow/parse-results.php
new file mode 100644
index 0000000..a1686a3
--- /dev/null
+++ b/pts/test-resources/warsow/parse-results.php
@@ -0,0 +1,6 @@
+<?php
+
+$BENCHMARK_RESULTS = trim(substr($argv[1], strrpos($argv[1], "seconds:" + 9)));
+$BENCHMARK_RESULTS = trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "fps")));
+echo $BENCHMARK_RESULTS;
+?>