diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2009-01-04 21:08:09 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2009-01-04 21:08:09 -0500 |
commit | ad786fec44818ad6b8b5497e97e3b40b4bcb66a8 (patch) | |
tree | fc796bf4922681eb3868dcdc52ed437de31b9b51 | |
parent | ee914294d91532a97cbc2e7729bf459e6cd864e8 (diff) | |
download | phoronix-test-suite-upstream-ad786fec44818ad6b8b5497e97e3b40b4bcb66a8.tar.gz phoronix-test-suite-upstream-ad786fec44818ad6b8b5497e97e3b40b4bcb66a8.tar.xz phoronix-test-suite-upstream-ad786fec44818ad6b8b5497e97e3b40b4bcb66a8.zip |
pts: Add smokin-guns test profile for Quake 3 Smokin' Guns game
-rw-r--r-- | CHANGE-LOG | 1 | ||||
-rw-r--r-- | pts/test-profiles/smokin-guns.xml | 37 | ||||
-rw-r--r-- | pts/test-resources/smokin-guns/downloads.xml | 15 | ||||
-rwxr-xr-x | pts/test-resources/smokin-guns/install.sh | 19 | ||||
-rwxr-xr-x | pts/test-resources/smokin-guns/parse-results.php | 6 |
5 files changed, 78 insertions, 0 deletions
@@ -3,6 +3,7 @@ PHORONIX TEST SUITE CHANGE-LOG Phoronix Test Suite (Git) - pts-core: Add FORCE_TIMES_TO_RUN environmental variable for forcing the number of times to run a test +- pts: Add smokin-guns test profile for Quake 3 Smokin' Guns game Phoronix Test Suite 1.6.0 Beta 2 January 2, 2009 diff --git a/pts/test-profiles/smokin-guns.xml b/pts/test-profiles/smokin-guns.xml new file mode 100644 index 0000000..d3e23d8 --- /dev/null +++ b/pts/test-profiles/smokin-guns.xml @@ -0,0 +1,37 @@ +<PhoronixTestSuite> + <TestProfile> + <Version>1.0.0</Version> + <TestType>Graphics</TestType> + <SoftwareType>Game</SoftwareType> + <License>FREE</License> + <Status>VERIFIED</Status> + <Maintainer>Michael Larabel</Maintainer> + <EnvironmentSize>348</EnvironmentSize> + <SupportedArchitectures>x86, x86_64</SupportedArchitectures> + <ProjectURL>http://www.smokin-guns.net/</ProjectURL> + <UnsupportedPlatforms>MacOSX, Solaris, BSD</UnsupportedPlatforms> + </TestProfile> + <TestInformation> + <Title>Smokin Guns</Title> + <Version>1.0</Version> + <TimesToRun>3</TimesToRun> + <ResultScale>Frames Per Second</ResultScale> + <Proportion>HIB</Proportion> + <Description>Smokin Guns is an open-source game based on the Quake 3 engine that is a western-themed first person shooter.</Description> + </TestInformation> + <TestSettings> + <Default> + <Arguments>+timedemo 1 +set demodone "quit" +set demoloop1 "demo pts; set nextdemo vstr demodone" +vstr demoloop1</Arguments> + </Default> + <Option> + <DisplayName>Resolution</DisplayName> + <Identifier>auto-resolution</Identifier> + <Menu> + <Entry> + <Name>$VIDEO_WIDTH x $VIDEO_HEIGHT</Name> + <Value>+set r_customwidth $VIDEO_WIDTH +set r_customheight $VIDEO_HEIGHT</Value> + </Entry> + </Menu> + </Option> + </TestSettings> +</PhoronixTestSuite> diff --git a/pts/test-resources/smokin-guns/downloads.xml b/pts/test-resources/smokin-guns/downloads.xml new file mode 100644 index 0000000..d1c39ae --- /dev/null +++ b/pts/test-resources/smokin-guns/downloads.xml @@ -0,0 +1,15 @@ +<PhoronixTestSuite> + <Downloads> + <Package> + <URL>http://www.smokinguns.fr/download/Smokin_Guns_1.0.zip, http://ftp.jeuxlinux.fr/files/Smokin_Guns_1.0.zip</URL> + <MD5>6e6a980bd057e9241c66b7324729c7b9</MD5> + <FileSize>359156581</FileSize> + </Package> + <Package> + <URL>http://www.phoronix-test-suite.com/benchmark-files/smokinguns-benchmark-1.tar.gz, http://www.phoronix.net/downloads/phoronix-test-suite/benchmark-files/smokinguns-benchmark-1.tar.gz</URL> + <MD5>77d2ef965790b1948595002a4f0ff0db</MD5> + <FileSize>1165158</FileSize> + </Package> + </Downloads> +</PhoronixTestSuite> + diff --git a/pts/test-resources/smokin-guns/install.sh b/pts/test-resources/smokin-guns/install.sh new file mode 100755 index 0000000..3d1c985 --- /dev/null +++ b/pts/test-resources/smokin-guns/install.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +unzip -o Smokin_Guns_1.0.zip +cd Smokin\'\ Guns/ +chmod +x smokinguns.x86 +cd .. + + +tar -xvf smokinguns-benchmark-1.tar.gz +mkdir -p ~/.smokinguns/smokinguns/ +mv -f q3config.cfg ~/.smokinguns/smokinguns/ +mv -f demos/ ~/.smokinguns/smokinguns/ + +echo "#!/bin/sh +cd Smokin\'\ Guns/ + +./smokinguns.x86 \$@ > \$LOG_FILE 2>&1 +cat \$LOG_FILE | grep fps" > smokin-guns +chmod +x smokin-guns diff --git a/pts/test-resources/smokin-guns/parse-results.php b/pts/test-resources/smokin-guns/parse-results.php new file mode 100755 index 0000000..c17c021 --- /dev/null +++ b/pts/test-resources/smokin-guns/parse-results.php @@ -0,0 +1,6 @@ +<?php +$log_file = file_get_contents(getenv("LOG_FILE")); +$BENCHMARK_RESULTS = trim(substr($log_file, 0, strrpos($log_file, " fps"))); +$BENCHMARK_RESULTS = trim(substr($BENCHMARK_RESULTS, strrpos($BENCHMARK_RESULTS, ' '))); +echo $BENCHMARK_RESULTS; +?> |