summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/fhourstones
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-24 09:53:27 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-24 09:53:27 -0400
commite5c547d422907120f090898eb6e6c5e107563397 (patch)
tree4a695e6a863f9c8835e57d53a24f71b452d49dbb /pts/test-resources/fhourstones
parent5cf04549e2a37c212101e80726f3134edd469fa6 (diff)
downloadphoronix-test-suite-upstream-e5c547d422907120f090898eb6e6c5e107563397.tar.gz
phoronix-test-suite-upstream-e5c547d422907120f090898eb6e6c5e107563397.tar.xz
phoronix-test-suite-upstream-e5c547d422907120f090898eb6e6c5e107563397.zip
pts: Add fhourstones test profile that does advanced Connect 4 game
solving
Diffstat (limited to 'pts/test-resources/fhourstones')
-rw-r--r--pts/test-resources/fhourstones/downloads.xml8
-rw-r--r--pts/test-resources/fhourstones/install.sh8
-rw-r--r--pts/test-resources/fhourstones/parse-results.php6
3 files changed, 22 insertions, 0 deletions
diff --git a/pts/test-resources/fhourstones/downloads.xml b/pts/test-resources/fhourstones/downloads.xml
new file mode 100644
index 0000000..0203af5
--- /dev/null
+++ b/pts/test-resources/fhourstones/downloads.xml
@@ -0,0 +1,8 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://homepages.cwi.nl/~tromp/c4/Fhourstones.tar.gz</URL>
+ <MD5>020cc5476aba44e4abf343e63fd47fca</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/fhourstones/install.sh b/pts/test-resources/fhourstones/install.sh
new file mode 100644
index 0000000..1409f82
--- /dev/null
+++ b/pts/test-resources/fhourstones/install.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+tar -xvf Fhourstones.tar.gz
+make -j $NUM_CPU_JOBS
+
+echo "#!/bin/sh
+./SearchGame < inputs 2>&1" > fhourstones-benchmark
+chmod +x fhourstones-benchmark
diff --git a/pts/test-resources/fhourstones/parse-results.php b/pts/test-resources/fhourstones/parse-results.php
new file mode 100644
index 0000000..8d6f8f6
--- /dev/null
+++ b/pts/test-resources/fhourstones/parse-results.php
@@ -0,0 +1,6 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], 0, strrpos($argv[1], "Kpos/sec"));
+echo trim(substr($BENCHMARK_RESULTS, strrpos($BENCHMARK_RESULTS, "msec =") + 6));
+
+?>