summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/unigine-sanctuary
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-17 14:43:44 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-17 14:43:44 -0400
commit75cf4d5114f02c166c690fc1d9c56f5c63df8eea (patch)
tree0f7fe154ce831b0431fca7cfb6351d153bd62e98 /pts/test-resources/unigine-sanctuary
parent80ce0b2f3cb13cc672a60be0b1ed06882abb2196 (diff)
downloadphoronix-test-suite-upstream-75cf4d5114f02c166c690fc1d9c56f5c63df8eea.tar.gz
phoronix-test-suite-upstream-75cf4d5114f02c166c690fc1d9c56f5c63df8eea.tar.xz
phoronix-test-suite-upstream-75cf4d5114f02c166c690fc1d9c56f5c63df8eea.zip
pts: Add unigine-sanctuary test profile for Unigine Engine (Thanks to
Unigine Corp)
Diffstat (limited to 'pts/test-resources/unigine-sanctuary')
-rw-r--r--pts/test-resources/unigine-sanctuary/downloads.xml9
-rwxr-xr-xpts/test-resources/unigine-sanctuary/install.sh10
-rw-r--r--pts/test-resources/unigine-sanctuary/parse-results.php5
3 files changed, 24 insertions, 0 deletions
diff --git a/pts/test-resources/unigine-sanctuary/downloads.xml b/pts/test-resources/unigine-sanctuary/downloads.xml
new file mode 100644
index 0000000..4372bee
--- /dev/null
+++ b/pts/test-resources/unigine-sanctuary/downloads.xml
@@ -0,0 +1,9 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://www.unigine.com/download/files/Unigine_Sanctuary2_Linux.tar.bz2</URL>
+ <MD5>60251614912b1d58fdec4f92aafe16ae</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
+
diff --git a/pts/test-resources/unigine-sanctuary/install.sh b/pts/test-resources/unigine-sanctuary/install.sh
new file mode 100755
index 0000000..7033c85
--- /dev/null
+++ b/pts/test-resources/unigine-sanctuary/install.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+tar -jxvf Unigine_Sanctuary2_Linux.tar.bz2
+
+echo "#!/bin/sh
+cd Unigine_Sanctuary2_Linux/
+export LD_LIBRARY_PATH=bin/:\$LD_LIBRARY_PATH
+./bin/main_x86 \$@ 2>&1 | grep FPS" > unigine-sanctuary
+chmod +x unigine-sanctuary
+
diff --git a/pts/test-resources/unigine-sanctuary/parse-results.php b/pts/test-resources/unigine-sanctuary/parse-results.php
new file mode 100644
index 0000000..35a388d
--- /dev/null
+++ b/pts/test-resources/unigine-sanctuary/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")));
+?>