summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/lightsmark
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-03 10:02:23 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-03 10:02:23 -0400
commitf3eef61489004f82bcaa1347200fa169cb30e4fc (patch)
treecbc0932bc77f45c82955bf65ece027bb1646993e /pts/test-resources/lightsmark
parentd0d37344ae77d4f057f57764b46a28b938e32b3e (diff)
downloadphoronix-test-suite-upstream-f3eef61489004f82bcaa1347200fa169cb30e4fc.tar.gz
phoronix-test-suite-upstream-f3eef61489004f82bcaa1347200fa169cb30e4fc.tar.xz
phoronix-test-suite-upstream-f3eef61489004f82bcaa1347200fa169cb30e4fc.zip
pts: Add Lightsmark 2008 test profile (lightsmark)
Diffstat (limited to 'pts/test-resources/lightsmark')
-rw-r--r--pts/test-resources/lightsmark/downloads.xml8
-rwxr-xr-xpts/test-resources/lightsmark/install.sh15
-rw-r--r--pts/test-resources/lightsmark/parse-results.php6
3 files changed, 29 insertions, 0 deletions
diff --git a/pts/test-resources/lightsmark/downloads.xml b/pts/test-resources/lightsmark/downloads.xml
new file mode 100644
index 0000000..f4da575
--- /dev/null
+++ b/pts/test-resources/lightsmark/downloads.xml
@@ -0,0 +1,8 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://www.dee.cz/lightsmark/Lightsmark2008.1.9.tar.bz2</URL>
+ <MD5>e61f93df1831209b9cfe5ea4f6eadf04</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/lightsmark/install.sh b/pts/test-resources/lightsmark/install.sh
new file mode 100755
index 0000000..8a80002
--- /dev/null
+++ b/pts/test-resources/lightsmark/install.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+tar -jxvf Lightsmark2008.1.9.tar.bz2
+
+echo "#!/bin/sh
+case \$OS_ARCH in
+ \"x86_64\" )
+ cd Lightsmark2008.1.9/bin/pc-linux64/
+ ;;
+ * )
+ cd Lightsmark2008.1.9/bin/pc-linux32/
+ ;;
+esac
+./backend \$@ 2>&1" > lightsmark
+chmod +x lightsmark
diff --git a/pts/test-resources/lightsmark/parse-results.php b/pts/test-resources/lightsmark/parse-results.php
new file mode 100644
index 0000000..391ba8b
--- /dev/null
+++ b/pts/test-resources/lightsmark/parse-results.php
@@ -0,0 +1,6 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "average fps =") + 14);
+$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n"));
+echo trim(substr($BENCHMARK_RESULTS, 0, strrpos($BENCHMARK_RESULTS, ".")));
+?>