summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/tremulous
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-20 17:57:50 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-20 17:57:50 -0400
commit85885e9921ab53b37acecb7d70b7963f789ef151 (patch)
tree965c4b4b999308c219048ee2ea8a847eb3f3d2a1 /pts/test-resources/tremulous
parentfc9f9da26bc56418d363fa6069337653492e4595 (diff)
downloadphoronix-test-suite-upstream-85885e9921ab53b37acecb7d70b7963f789ef151.tar.gz
phoronix-test-suite-upstream-85885e9921ab53b37acecb7d70b7963f789ef151.tar.xz
phoronix-test-suite-upstream-85885e9921ab53b37acecb7d70b7963f789ef151.zip
pts: Fix tremulous test-resource file permissions
Diffstat (limited to 'pts/test-resources/tremulous')
-rw-r--r--pts/test-resources/tremulous/downloads.xml13
-rwxr-xr-xpts/test-resources/tremulous/install.sh13
-rwxr-xr-xpts/test-resources/tremulous/parse-results.php6
3 files changed, 32 insertions, 0 deletions
diff --git a/pts/test-resources/tremulous/downloads.xml b/pts/test-resources/tremulous/downloads.xml
new file mode 100644
index 0000000..b6beb9c
--- /dev/null
+++ b/pts/test-resources/tremulous/downloads.xml
@@ -0,0 +1,13 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://internap.dl.sourceforge.net/sourceforge/tremulous/tremulous-1.1.0.zip, http://voxel.dl.sourceforge.net/sourceforge/tremulous/tremulous-1.1.0.zip, http://mesh.dl.sourceforge.net/sourceforge/tremulous/tremulous-1.1.0.zip, http://heanet.dl.sourceforge.net/sourceforge/tremulous/tremulous-1.1.0.zip, http://internode.dl.sourceforge.net/sourceforge/tremulous/tremulous-1.1.0.zip</URL>
+ <MD5>3df5f7565571fb9524656308347bce1b</MD5>
+ </Package>
+ <Package>
+ <URL>http://www.phoronix-test-suite.com/benchmark-files/tremulous-benchmark-1.tar.gz, http://www.phoronix.net/downloads/phoronix-test-suite/benchmark-files/tremulous-benchmark-1.tar.gz</URL>
+ <MD5>71663ef14020c1f8bc368d5a13e1a69f</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
+
diff --git a/pts/test-resources/tremulous/install.sh b/pts/test-resources/tremulous/install.sh
new file mode 100755
index 0000000..7ef9893
--- /dev/null
+++ b/pts/test-resources/tremulous/install.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+unzip -o tremulous-1.1.0.zip -d tremulous_/
+tar -xvf tremulous-benchmark-1.tar.gz
+
+mv tremulous-benchmark.cfg tremulous_/tremulous/base/
+mv demos/ tremulous_/tremulous/base/
+
+echo "#!/bin/sh
+cd tremulous_/tremulous/
+./tremulous.x86 \$@ 2>&1 | grep fps
+" > tremulous
+chmod +x tremulous
diff --git a/pts/test-resources/tremulous/parse-results.php b/pts/test-resources/tremulous/parse-results.php
new file mode 100755
index 0000000..f75e04d
--- /dev/null
+++ b/pts/test-resources/tremulous/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;
+?>