summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/encode-ogg
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-03 14:07:28 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-03 14:07:28 -0400
commit837cc0f48457dc7aa6fb92edb5a5ec1f2b0578b9 (patch)
treef488b4416f40a3fa0c5f7553a9eefca80c2de677 /pts/test-resources/encode-ogg
parentc5d9182dc4287931b58bcebaa2d319f6737f47cb (diff)
downloadphoronix-test-suite-upstream-837cc0f48457dc7aa6fb92edb5a5ec1f2b0578b9.tar.gz
phoronix-test-suite-upstream-837cc0f48457dc7aa6fb92edb5a5ec1f2b0578b9.tar.xz
phoronix-test-suite-upstream-837cc0f48457dc7aa6fb92edb5a5ec1f2b0578b9.zip
pts-core: Add in a micro-timer framework that is platform universal
pts: Move encode-ogg test profile to this new framework to show how to utilize it.
Diffstat (limited to 'pts/test-resources/encode-ogg')
-rwxr-xr-xpts/test-resources/encode-ogg/install.sh5
-rw-r--r--pts/test-resources/encode-ogg/parse-results.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/pts/test-resources/encode-ogg/install.sh b/pts/test-resources/encode-ogg/install.sh
index 1dd383f..7ca4983 100755
--- a/pts/test-resources/encode-ogg/install.sh
+++ b/pts/test-resources/encode-ogg/install.sh
@@ -29,5 +29,8 @@ cd ..
rm -rf vorbis-tools-1.2.0/
echo "#!/bin/sh
-/usr/bin/time -f \"WAV To OGG Encode Time: %e Seconds\" ./vorbis/bin/oggenc --quiet \$TEST_EXTENDS/pts-trondheim.wav -q 10 -o /dev/null 2>&1" > oggenc
+\$TIMER_START
+./vorbis/bin/oggenc \$TEST_EXTENDS/pts-trondheim.wav -q 10 -o /dev/null > \$LOG_FILE 2>&1
+\$TIMER_STOP
+cat \$LOG_FILE" > oggenc
chmod +x oggenc
diff --git a/pts/test-resources/encode-ogg/parse-results.php b/pts/test-resources/encode-ogg/parse-results.php
index e090ce7..06bbde7 100644
--- a/pts/test-resources/encode-ogg/parse-results.php
+++ b/pts/test-resources/encode-ogg/parse-results.php
@@ -1,5 +1,4 @@
<?php
-$BENCHMARK_RESULTS = substr($argv[1], strpos($argv[1], "WAV To OGG Encode Time:") + 23);
-echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
+echo getenv("TIMER_RESULT");
?>