diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-29 11:23:21 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-29 11:23:21 -0400 |
commit | d2993872f1e7598e90e22cada8d58fabcb6443c1 (patch) | |
tree | e104a8cca259dcce012c95f3a7d311c1f9981fdd /pts/test-resources/sunflow | |
parent | d8f940cde35c8423043bd37c58f00f57e901e66b (diff) | |
download | phoronix-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/sunflow')
-rw-r--r-- | pts/test-resources/sunflow/downloads.xml | 8 | ||||
-rw-r--r-- | pts/test-resources/sunflow/install.sh | 22 | ||||
-rw-r--r-- | pts/test-resources/sunflow/parse-results.php | 7 |
3 files changed, 37 insertions, 0 deletions
diff --git a/pts/test-resources/sunflow/downloads.xml b/pts/test-resources/sunflow/downloads.xml new file mode 100644 index 0000000..08cfd6c --- /dev/null +++ b/pts/test-resources/sunflow/downloads.xml @@ -0,0 +1,8 @@ +<PhoronixTestSuite> + <Downloads> + <Package> + <URL>http://internap.dl.sourceforge.net/sourceforge/sunflow/sunflow-bin-v0.07.2.zip</URL> + <MD5>5806cafff80db23c275203589ce2f5d4</MD5> + </Package> + </Downloads> +</PhoronixTestSuite> diff --git a/pts/test-resources/sunflow/install.sh b/pts/test-resources/sunflow/install.sh new file mode 100644 index 0000000..5a4bcdd --- /dev/null +++ b/pts/test-resources/sunflow/install.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +cd $1 + +unzip -o sunflow-bin-v0.07.2.zip + +echo "#!/bin/sh +cd sunflow + +if [ \$SYS_MEMORY -ge 1280 ] +then + JAVA_VM_MEMORY=1024M +elif [ \$SYS_MEMORY -ge 768 ] +then + JAVA_VM_MEMORY=512M +else + JAVA_VM_MEMORY=256M +fi + +java -server -Xmx\$JAVA_VM_MEMORY -jar sunflow.jar -bench +" > sunflow-benchmark +chmod +x sunflow-benchmark diff --git a/pts/test-resources/sunflow/parse-results.php b/pts/test-resources/sunflow/parse-results.php new file mode 100644 index 0000000..d2332d2 --- /dev/null +++ b/pts/test-resources/sunflow/parse-results.php @@ -0,0 +1,7 @@ +<?php + +$BENCHMARK_RESULTS = substr($argv[1], strpos($argv[1], "Average:")); +$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")); +echo trim(substr($BENCHMARK_RESULTS, strrpos($BENCHMARK_RESULTS, ':') + 1)); + +?> |