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/etqw-demo | |
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/etqw-demo')
-rwxr-xr-x | pts/test-resources/etqw-demo/install.sh | 22 | ||||
-rw-r--r-- | pts/test-resources/etqw-demo/parse-results.php | 5 |
2 files changed, 27 insertions, 0 deletions
diff --git a/pts/test-resources/etqw-demo/install.sh b/pts/test-resources/etqw-demo/install.sh new file mode 100755 index 0000000..bf35cf6 --- /dev/null +++ b/pts/test-resources/etqw-demo/install.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +cd $1 + +if [ ! -f ETQW-demo2-client-full.r1.x86.run ] + then + wget ftp://ftp.idsoftware.com/idstuff/etqw/ETQW-demo2-client-full.r1.x86.run -O ETQW-demo2-client-full.r1.x86.run +fi +if [ ! -f etqw-demo-demo.tar.bz2 ] + then + wget http://www.phoronix-test-suite.com/benchmark-files/etqw-demo-demo-1.tar.bz2 -O etqw-demo-demo.tar.bz2 +fi + +unzip -o ETQW-demo2-client-full.r1.x86.run + +echo "#!/bin/sh +cd data/\n./etqw.x86 \$@ | grep fps" > etqw +chmod +x etqw + +tar -jxvf etqw-demo-demo.tar.bz2 +mkdir data/base/demos +mv -f pts.ndm data/base/demos/pts.ndm diff --git a/pts/test-resources/etqw-demo/parse-results.php b/pts/test-resources/etqw-demo/parse-results.php new file mode 100644 index 0000000..6cf5b34 --- /dev/null +++ b/pts/test-resources/etqw-demo/parse-results.php @@ -0,0 +1,5 @@ +<?php + +$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "seconds =") + 9); +echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "fps"))); +?> |