diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-07 21:25:19 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-07 21:25:19 -0500 |
commit | 561c8423f860da1b7f082bc1cbf800fab1289383 (patch) | |
tree | acb22c0b313ec2e0945a3ca7af65b24d154a4239 /pts/test-resources/prey | |
parent | 4db048baf3604c1b2dfed479ff1d53dd121399d2 (diff) | |
download | phoronix-test-suite-upstream-561c8423f860da1b7f082bc1cbf800fab1289383.tar.gz phoronix-test-suite-upstream-561c8423f860da1b7f082bc1cbf800fab1289383.tar.xz phoronix-test-suite-upstream-561c8423f860da1b7f082bc1cbf800fab1289383.zip |
pts: Add prey retail game client test profile
Diffstat (limited to 'pts/test-resources/prey')
-rw-r--r-- | pts/test-resources/prey/downloads.xml | 23 | ||||
-rwxr-xr-x | pts/test-resources/prey/install.sh | 29 | ||||
-rw-r--r-- | pts/test-resources/prey/parse-results.php | 5 |
3 files changed, 57 insertions, 0 deletions
diff --git a/pts/test-resources/prey/downloads.xml b/pts/test-resources/prey/downloads.xml new file mode 100644 index 0000000..d9ddd64 --- /dev/null +++ b/pts/test-resources/prey/downloads.xml @@ -0,0 +1,23 @@ +<PhoronixTestSuite> + <Downloads> + <Package> + <URL>http://icculus.org/prey/downloads/prey-installer-12072008.bin</URL> + <MD5>0db9224e6248f59ce3680d2961b598b5</MD5> + <FileSize>45445457</FileSize> + </Package> + <Package> + <URL>http://www.phoronix-test-suite.com/benchmark-files/prey-retail-client-pts-1.tar.bz2, http://www.phoronix.net/downloads/phoronix-test-suite/benchmark-files/prey-retail-client-pts-1.tar.bz2</URL> + <MD5>50e6b6fb1128fb9ad350188162c0a9aa</MD5> + <FileSize>38591789</FileSize> + </Package> + <Package> + <URL>prey-base-files.tar</URL> + <FileName>prey-base-files.tar</FileName> + <FileSize>1686220800</FileSize> + </Package> + <Package> + <URL>preykey.tar</URL> + <FileName>preykey.tar</FileName> + </Package> + </Downloads> +</PhoronixTestSuite> diff --git a/pts/test-resources/prey/install.sh b/pts/test-resources/prey/install.sh new file mode 100755 index 0000000..05c6890 --- /dev/null +++ b/pts/test-resources/prey/install.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +unzip -o prey-installer-12072008.bin +rm -rf guis/ +rm -rf meta/ +rm -rf scripts/ +mkdir -p .prey/base/ +tar -C .prey/base/ -jxf prey-retail-client-pts-1.tar.bz2 +mv data/prey-linux-data/base/* data/prey-linux-x86/base + +echo "#!/bin/sh +cd data/prey-linux-x86/ +./prey.x86 \$@ > \$LOG_FILE +cat \$LOG_FILE | grep fps" > prey +chmod +x prey + +if [ -f prey-base-files.tar ] + then + tar -C data/prey-linux-x86/base/ -k -xvf prey-base-files.tar + else + echo "Prey Retail Game Files (*.pk4) Must Be Copied Into $1/data/prey-linux-x86/base/" +fi +if [ -f preykey.tar ] + then + tar -C .prey/base/ -xvf preykey.tar + else + echo "Copy Your Game Key File To $HOME/.prey/base/preykey" +fi + diff --git a/pts/test-resources/prey/parse-results.php b/pts/test-resources/prey/parse-results.php new file mode 100644 index 0000000..a538b81 --- /dev/null +++ b/pts/test-resources/prey/parse-results.php @@ -0,0 +1,5 @@ +<?php +$log_file = file_get_contents(getenv("LOG_FILE")); +$BENCHMARK_RESULTS = substr($log_file, strrpos($log_file, "seconds =") + 9); +echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "fps"))); +?> |