summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/yafray
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-03 15:12:06 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-03 15:12:06 -0400
commitfaa872d624096ca4e2ee91727a1a6d83263a80a7 (patch)
tree6201b22e8b2124dccd0a590bc7a8be25da5c85c2 /pts/test-resources/yafray
parent24d2198e40bf2f2543e4b7136d2a27cfdf77f14b (diff)
downloadphoronix-test-suite-upstream-faa872d624096ca4e2ee91727a1a6d83263a80a7.tar.gz
phoronix-test-suite-upstream-faa872d624096ca4e2ee91727a1a6d83263a80a7.tar.xz
phoronix-test-suite-upstream-faa872d624096ca4e2ee91727a1a6d83263a80a7.zip
pts: Move over all relevent tests to using the new universal micro-timer
functionality
Diffstat (limited to 'pts/test-resources/yafray')
-rwxr-xr-xpts/test-resources/yafray/install.sh4
-rw-r--r--pts/test-resources/yafray/parse-results.php5
2 files changed, 3 insertions, 6 deletions
diff --git a/pts/test-resources/yafray/install.sh b/pts/test-resources/yafray/install.sh
index c51b158..f4c1f81 100755
--- a/pts/test-resources/yafray/install.sh
+++ b/pts/test-resources/yafray/install.sh
@@ -42,5 +42,7 @@ cp yafray_/etc/gram.yafray .
echo "#!/bin/sh
export LD_LIBRARY_PATH=\"$THIS_DIR/yafray_/lib/:\$LD_LIBRARY_PATH\"
-/usr/bin/time -f \"Render Time: %e Seconds\" ./yafray_/bin/yafray -c \$NUM_CPU_CORES YBtest.xml 2>&1 | grep Seconds" > yafray-run
+\$TIMER_START
+./yafray_/bin/yafray -c \$NUM_CPU_CORES YBtest.xml 2>&1
+\$TIMER_STOP" > yafray-run
chmod +x yafray-run
diff --git a/pts/test-resources/yafray/parse-results.php b/pts/test-resources/yafray/parse-results.php
deleted file mode 100644
index 6f8e4e5..0000000
--- a/pts/test-resources/yafray/parse-results.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "Render Time:") + 12);
-echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
-?>