summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/x11perf
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-09 20:26:59 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-09 20:26:59 -0400
commit5eeedd8b26e69d59729ef83f2fc834552a407fb5 (patch)
tree745a60f1e0e9af1e24afce83f0d620dc9cd2d8ef /pts/test-resources/x11perf
parent6045ce4f8be18c0f48cb372893d8269c652643d1 (diff)
downloadphoronix-test-suite-upstream-5eeedd8b26e69d59729ef83f2fc834552a407fb5.tar.gz
phoronix-test-suite-upstream-5eeedd8b26e69d59729ef83f2fc834552a407fb5.tar.xz
phoronix-test-suite-upstream-5eeedd8b26e69d59729ef83f2fc834552a407fb5.zip
pts: Update many test profiles to using $LOG_FILE
pts-core: Various minor tweaks in the functions run file
Diffstat (limited to 'pts/test-resources/x11perf')
-rwxr-xr-xpts/test-resources/x11perf/install.sh2
-rw-r--r--pts/test-resources/x11perf/parse-results.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/pts/test-resources/x11perf/install.sh b/pts/test-resources/x11perf/install.sh
index 2c476f7..5dd1db5 100755
--- a/pts/test-resources/x11perf/install.sh
+++ b/pts/test-resources/x11perf/install.sh
@@ -8,5 +8,5 @@ cd ..
echo "#!/bin/sh
cd x11perf-1.5/
-./x11perf \$@" > x11perf
+./x11perf \$@ > \$LOG_FILE" > x11perf
chmod +x x11perf
diff --git a/pts/test-resources/x11perf/parse-results.php b/pts/test-resources/x11perf/parse-results.php
index bde6afb..12713a7 100644
--- a/pts/test-resources/x11perf/parse-results.php
+++ b/pts/test-resources/x11perf/parse-results.php
@@ -1,6 +1,6 @@
<?php
-
-$BENCHMARK_RESULTS = substr($argv[1], 0, strrpos($argv[1], "/sec"));
+$log_file = file_get_contents(getenv("LOG_FILE"));
+$BENCHMARK_RESULTS = substr($log_file, 0, strrpos($log_file, "/sec"));
$BENCHMARK_RESULTS = trim(substr($BENCHMARK_RESULTS, strrpos($BENCHMARK_RESULTS, " ")));
if(substr($BENCHMARK_RESULTS, 0, 1) == "(")