summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/java-scimark2
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-04-29 11:23:21 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-04-29 11:23:21 -0400
commitd2993872f1e7598e90e22cada8d58fabcb6443c1 (patch)
treee104a8cca259dcce012c95f3a7d311c1f9981fdd /pts/test-resources/java-scimark2
parentd8f940cde35c8423043bd37c58f00f57e901e66b (diff)
downloadphoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.tar.gz
phoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.tar.xz
phoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.zip
Change benchmark-profiles/, benchmark-resources/, and benchmark-suites/ to test-profiles/, test-resources/, and test-suites/
Diffstat (limited to 'pts/test-resources/java-scimark2')
-rw-r--r--pts/test-resources/java-scimark2/downloads.xml8
-rw-r--r--pts/test-resources/java-scimark2/install.sh32
-rw-r--r--pts/test-resources/java-scimark2/parse-results.php6
3 files changed, 46 insertions, 0 deletions
diff --git a/pts/test-resources/java-scimark2/downloads.xml b/pts/test-resources/java-scimark2/downloads.xml
new file mode 100644
index 0000000..05ab271
--- /dev/null
+++ b/pts/test-resources/java-scimark2/downloads.xml
@@ -0,0 +1,8 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://math.nist.gov/scimark2/scimark2lib.zip</URL>
+ <MD5>fce68e619b03c815fa56f2637a841fa9</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/java-scimark2/install.sh b/pts/test-resources/java-scimark2/install.sh
new file mode 100644
index 0000000..ad1e4db
--- /dev/null
+++ b/pts/test-resources/java-scimark2/install.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+cd $1
+
+unzip -o scimark2lib.zip
+
+echo "#!/bin/sh
+
+rm -f *.result
+java jnt.scimark2.commandline > \$THIS_RUN_TIME.result
+
+case \"\$1\" in
+\"TEST_COMPOSITE\")
+ cat \$THIS_RUN_TIME.result | grep \"Composite Score\"
+ ;;
+\"TEST_FFT\")
+ cat \$THIS_RUN_TIME.result | grep \"FFT (1024)\"
+ ;;
+\"TEST_SOR\")
+ cat \$THIS_RUN_TIME.result | grep \"SOR (100x100)\"
+ ;;
+\"TEST_MONTE\")
+ cat \$THIS_RUN_TIME.result | grep \"Monte Carlo\"
+ ;;
+\"TEST_SPARSE\")
+ cat \$THIS_RUN_TIME.result | grep \"Sparse matmult\"
+ ;;
+\"TEST_DENSE\")
+ cat \$THIS_RUN_TIME.result | grep \"LU (100x100)\"
+ ;;
+esac" > java-scimark2
+chmod +x java-scimark2
diff --git a/pts/test-resources/java-scimark2/parse-results.php b/pts/test-resources/java-scimark2/parse-results.php
new file mode 100644
index 0000000..45f4807
--- /dev/null
+++ b/pts/test-resources/java-scimark2/parse-results.php
@@ -0,0 +1,6 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], strpos($argv[1], ":") + 2);
+echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")));
+
+?>