diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-29 14:27:59 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-12-29 14:27:59 -0500 |
commit | b69fcfb7f641eb4e0f958cdc8c3d279c01f08980 (patch) | |
tree | fa7dd30d76e77f4d07f26c186c7d44e8314896de /pts/test-resources/vdrift | |
parent | 78bc858480125fcc641d3e1a2bd604d81eaae2c4 (diff) | |
download | phoronix-test-suite-upstream-b69fcfb7f641eb4e0f958cdc8c3d279c01f08980.tar.gz phoronix-test-suite-upstream-b69fcfb7f641eb4e0f958cdc8c3d279c01f08980.tar.xz phoronix-test-suite-upstream-b69fcfb7f641eb4e0f958cdc8c3d279c01f08980.zip |
pts: Use $LOG_FILE with stresscpu2 and vdrift test profiles
Diffstat (limited to 'pts/test-resources/vdrift')
-rwxr-xr-x | pts/test-resources/vdrift/install.sh | 2 | ||||
-rw-r--r-- | pts/test-resources/vdrift/parse-results.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pts/test-resources/vdrift/install.sh b/pts/test-resources/vdrift/install.sh index d7784d5..a4e6630 100755 --- a/pts/test-resources/vdrift/install.sh +++ b/pts/test-resources/vdrift/install.sh @@ -16,6 +16,6 @@ cd .. echo "#!/bin/sh cd vdrift-08-05-08/ -./build/vdrift -benchmark" > vdrift +./build/vdrift -benchmark > \$LOG_FILE 2>&1" > vdrift chmod +x vdrift diff --git a/pts/test-resources/vdrift/parse-results.php b/pts/test-resources/vdrift/parse-results.php index 4fe0999..1f6bcd1 100644 --- a/pts/test-resources/vdrift/parse-results.php +++ b/pts/test-resources/vdrift/parse-results.php @@ -1,6 +1,7 @@ <?php -$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "FPS:") + 4); +$log_file = file_get_contents(getenv("LOG_FILE")); +$BENCHMARK_RESULTS = substr($log_file, strrpos($log_file, "FPS:") + 4); echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n"))); ?> |