summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/lightsmark
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-14 09:09:16 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-14 09:09:16 -0400
commit83fd7d7a81d0e128aa51a61cc1d26e6d7f1de236 (patch)
tree25a5ea6a48db81c5f20c69d555deca9fbe24636c /pts/test-resources/lightsmark
parentfb1688bcb3d187293ac6a68de3356ca4e2ec542f (diff)
downloadphoronix-test-suite-upstream-83fd7d7a81d0e128aa51a61cc1d26e6d7f1de236.tar.gz
phoronix-test-suite-upstream-83fd7d7a81d0e128aa51a61cc1d26e6d7f1de236.tar.xz
phoronix-test-suite-upstream-83fd7d7a81d0e128aa51a61cc1d26e6d7f1de236.zip
pts: More test profile updates....
Diffstat (limited to 'pts/test-resources/lightsmark')
-rwxr-xr-xpts/test-resources/lightsmark/install.sh2
-rw-r--r--pts/test-resources/lightsmark/parse-results.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/pts/test-resources/lightsmark/install.sh b/pts/test-resources/lightsmark/install.sh
index 6c36198..3cd126b 100755
--- a/pts/test-resources/lightsmark/install.sh
+++ b/pts/test-resources/lightsmark/install.sh
@@ -11,5 +11,5 @@ case \$OS_ARCH in
cd Lightsmark2008.2.0/bin/pc-linux32/
;;
esac
-./backend \$@ 2>&1" > lightsmark
+./backend \$@ > \$LOG_FILE 2>&1" > lightsmark
chmod +x lightsmark
diff --git a/pts/test-resources/lightsmark/parse-results.php b/pts/test-resources/lightsmark/parse-results.php
index 391ba8b..e046172 100644
--- a/pts/test-resources/lightsmark/parse-results.php
+++ b/pts/test-resources/lightsmark/parse-results.php
@@ -1,6 +1,6 @@
<?php
-
-$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "average fps =") + 14);
+$log_file = file_get_contents(getenv("LOG_FILE"));
+$BENCHMARK_RESULTS = substr($log_file, strrpos($log_file, "average fps =") + 14);
$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n"));
echo trim(substr($BENCHMARK_RESULTS, 0, strrpos($BENCHMARK_RESULTS, ".")));
?>