summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/iozone
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-11 18:58:12 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-11 18:58:12 -0400
commit761e3b90aab641ca3bb8d211a11b58d6f55d8288 (patch)
treeafac9ec73c0fccf39d884f00bf9249f06fd0359f /pts/test-resources/iozone
parentce4a0ad557845bdde967998025c27ff17ee516b7 (diff)
downloadphoronix-test-suite-upstream-761e3b90aab641ca3bb8d211a11b58d6f55d8288.tar.gz
phoronix-test-suite-upstream-761e3b90aab641ca3bb8d211a11b58d6f55d8288.tar.xz
phoronix-test-suite-upstream-761e3b90aab641ca3bb8d211a11b58d6f55d8288.zip
pts: A variety of changes
Diffstat (limited to 'pts/test-resources/iozone')
-rwxr-xr-xpts/test-resources/iozone/install.sh2
-rw-r--r--pts/test-resources/iozone/parse-results.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/pts/test-resources/iozone/install.sh b/pts/test-resources/iozone/install.sh
index de437bf..122ba50 100755
--- a/pts/test-resources/iozone/install.sh
+++ b/pts/test-resources/iozone/install.sh
@@ -14,5 +14,5 @@ esac
echo "#!/bin/sh
iozone_ram=\$((\$SYS_MEMORY * 2))
-iozone3_308/src/current/iozone -s \${iozone_ram}M \$@ 2>&1" > ../../../iozone
+iozone3_308/src/current/iozone -s \${iozone_ram}M \$@ > \$LOG_FILE 2>&1" > ../../../iozone
chmod +x ../../../iozone
diff --git a/pts/test-resources/iozone/parse-results.php b/pts/test-resources/iozone/parse-results.php
index 2bece97..9a7ee17 100644
--- a/pts/test-resources/iozone/parse-results.php
+++ b/pts/test-resources/iozone/parse-results.php
@@ -1,7 +1,9 @@
<?php
+$log_file = file_get_contents(getenv("LOG_FILE"));
+
// find the line with "reclean" on it
-$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "reclen"));
+$BENCHMARK_RESULTS = substr($log_file, strrpos($log_file, "reclen"));
// skip to the next line
$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 1+strpos($BENCHMARK_RESULTS, "\n"));
// remove stuff after this line