summaryrefslogtreecommitdiffstats
path: root/pts/test-resources
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-30 15:05:50 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-30 15:05:50 -0400
commitc744519935521dae359f8b0aaeede98969affc77 (patch)
tree3ddbac0309a21baa2e29da31638e74759ee93a7f /pts/test-resources
parent5d14eb5b62840c2a4e6f9f4ec606351110d82db8 (diff)
downloadphoronix-test-suite-upstream-c744519935521dae359f8b0aaeede98969affc77.tar.gz
phoronix-test-suite-upstream-c744519935521dae359f8b0aaeede98969affc77.tar.xz
phoronix-test-suite-upstream-c744519935521dae359f8b0aaeede98969affc77.zip
pts: Add unigine-islands test profile for new Unigine Islands technology
demo
Diffstat (limited to 'pts/test-resources')
-rw-r--r--pts/test-resources/unigine-islands/downloads.xml8
-rwxr-xr-xpts/test-resources/unigine-islands/install.sh10
-rw-r--r--pts/test-resources/unigine-islands/parse-results.php5
3 files changed, 23 insertions, 0 deletions
diff --git a/pts/test-resources/unigine-islands/downloads.xml b/pts/test-resources/unigine-islands/downloads.xml
new file mode 100644
index 0000000..29e85bf
--- /dev/null
+++ b/pts/test-resources/unigine-islands/downloads.xml
@@ -0,0 +1,8 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://www.unigine.com/download/files/Unigine_Islands_Linux.tar.bz2</URL>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
+
diff --git a/pts/test-resources/unigine-islands/install.sh b/pts/test-resources/unigine-islands/install.sh
new file mode 100755
index 0000000..03daff7
--- /dev/null
+++ b/pts/test-resources/unigine-islands/install.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+tar -jxvf Unigine_Islands_Linux.tar.bz2
+
+echo "#!/bin/sh
+cd Unigine_Islands_Linux/
+export LD_LIBRARY_PATH=bin/:\$LD_LIBRARY_PATH
+./bin/main_x86 \$@ 2>&1 | grep FPS" > unigine-islands
+chmod +x unigine-islands
+
diff --git a/pts/test-resources/unigine-islands/parse-results.php b/pts/test-resources/unigine-islands/parse-results.php
new file mode 100644
index 0000000..35a388d
--- /dev/null
+++ b/pts/test-resources/unigine-islands/parse-results.php
@@ -0,0 +1,5 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "FPS:") + 5);
+echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")));
+?>