summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/byte
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-01 20:29:03 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-01 20:29:03 -0400
commitc23811f3635208afd4c9b343f67dfa43da0c28e1 (patch)
tree7cdcbe4ffb6a89b5293c4fa688e7c0ba0db2ab3c /pts/test-resources/byte
parentd342e4d6dbb701ecf45662e11556d8f8ef4b2a8c (diff)
downloadphoronix-test-suite-upstream-c23811f3635208afd4c9b343f67dfa43da0c28e1.tar.gz
phoronix-test-suite-upstream-c23811f3635208afd4c9b343f67dfa43da0c28e1.tar.xz
phoronix-test-suite-upstream-c23811f3635208afd4c9b343f67dfa43da0c28e1.zip
pts: Move the byte test profile to using the new $LOG_FILE capability
for an example and for testing
Diffstat (limited to 'pts/test-resources/byte')
-rwxr-xr-xpts/test-resources/byte/install.sh10
-rw-r--r--pts/test-resources/byte/parse-results.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/pts/test-resources/byte/install.sh b/pts/test-resources/byte/install.sh
index c3031bb..8ffc68c 100755
--- a/pts/test-resources/byte/install.sh
+++ b/pts/test-resources/byte/install.sh
@@ -12,18 +12,18 @@ cd bm/
case \"\$1\" in
\"TEST_DHRY2\")
- ./Run dhry2 > ../result
+ ./Run dhry2 > \$LOG_FILE
;;
\"TEST_REGISTER\")
- ./Run register > ../result
+ ./Run register > \$LOG_FILE
;;
\"TEST_INT\")
- ./Run int > ../result
+ ./Run int > \$LOG_FILE
;;
\"TEST_FLOAT\")
- ./Run float > ../result
+ ./Run float > \$LOG_FILE
;;
esac
-cat ../result | grep lps" > byte
+cat \$LOG_FILE | grep lps" > byte
chmod +x byte
diff --git a/pts/test-resources/byte/parse-results.php b/pts/test-resources/byte/parse-results.php
index 9fa68c9..767e8f9 100644
--- a/pts/test-resources/byte/parse-results.php
+++ b/pts/test-resources/byte/parse-results.php
@@ -1,6 +1,6 @@
<?php
-$file = @file_get_contents("result");
+$file = @file_get_contents(getenv("LOG_FILE"));
$results = trim(substr($file, 0, strrpos($file, "INDEX VALUES")));
$results = trim(substr($results, 0, strrpos($results, "(")));