summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-12-28 18:18:00 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-12-28 18:18:00 -0500
commitfe9921b7d2685c497702c516eed752bb6b1a5745 (patch)
tree29e3d45ab1b9dbb7da86ffc8440efa19a8f67edf
parentdb60c7a9c98236fe7c10c917ad248e148a57e52a (diff)
downloadphoronix-test-suite-upstream-fe9921b7d2685c497702c516eed752bb6b1a5745.tar.gz
phoronix-test-suite-upstream-fe9921b7d2685c497702c516eed752bb6b1a5745.tar.xz
phoronix-test-suite-upstream-fe9921b7d2685c497702c516eed752bb6b1a5745.zip
pts: More graphics-magick tweaks
-rw-r--r--pts/test-profiles/graphics-magick.xml2
-rw-r--r--pts/test-resources/graphics-magick/parse-results.php8
2 files changed, 8 insertions, 2 deletions
diff --git a/pts/test-profiles/graphics-magick.xml b/pts/test-profiles/graphics-magick.xml
index bc8799c..8d9fee8 100644
--- a/pts/test-profiles/graphics-magick.xml
+++ b/pts/test-profiles/graphics-magick.xml
@@ -7,7 +7,7 @@
<Status>VERIFIED</Status>
<Maintainer>Michael Larabel</Maintainer>
<Extends>photo-sample</Extends>
- <ExternalDependencies>build-utilities</ExternalDependencies>
+ <ExternalDependencies>build-utilities, jpeg-development</ExternalDependencies>
<ProjectURL>http://www.graphicsmagick.org/</ProjectURL>
</TestProfile>
<TestInformation>
diff --git a/pts/test-resources/graphics-magick/parse-results.php b/pts/test-resources/graphics-magick/parse-results.php
index f5fd526..14444b7 100644
--- a/pts/test-resources/graphics-magick/parse-results.php
+++ b/pts/test-resources/graphics-magick/parse-results.php
@@ -1,5 +1,11 @@
<?php
$log_file = file_get_contents(getenv("LOG_FILE"));
$BENCHMARK_RESULTS = substr($log_file, strrpos($log_file, "Results: ") + 9);
-echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "iter") - 1));
+$BENCHMARK_RESULTS = trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "iter") - 1));
+
+if($BENCHMARK_RESULTS < 2)
+ $BENCHMARK_RESULTS = 0;
+
+echo $BENCHMARK_RESULTS;
+
?>