summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/smokin-guns/parse-results.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2009-01-04 21:08:09 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2009-01-04 21:08:09 -0500
commitad786fec44818ad6b8b5497e97e3b40b4bcb66a8 (patch)
treefc796bf4922681eb3868dcdc52ed437de31b9b51 /pts/test-resources/smokin-guns/parse-results.php
parentee914294d91532a97cbc2e7729bf459e6cd864e8 (diff)
downloadphoronix-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
Diffstat (limited to 'pts/test-resources/smokin-guns/parse-results.php')
-rwxr-xr-xpts/test-resources/smokin-guns/parse-results.php6
1 files changed, 6 insertions, 0 deletions
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;
+?>