diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-06-02 15:20:05 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-06-02 15:20:05 -0400 |
commit | c7655b0c9e714ea2d067ee0a6ad4e46f5b02ea06 (patch) | |
tree | 32d813948c5032072bbed0a1db640dce6a4c6f9f /pts/test-resources/yafray | |
parent | 9e90e3f8ecfec1c19d47cfad904527b77887a364 (diff) | |
download | phoronix-test-suite-upstream-c7655b0c9e714ea2d067ee0a6ad4e46f5b02ea06.tar.gz phoronix-test-suite-upstream-c7655b0c9e714ea2d067ee0a6ad4e46f5b02ea06.tar.xz phoronix-test-suite-upstream-c7655b0c9e714ea2d067ee0a6ad4e46f5b02ea06.zip |
Add yafray test profile for open-source ray-tracing
Diffstat (limited to 'pts/test-resources/yafray')
-rw-r--r-- | pts/test-resources/yafray/downloads.xml | 12 | ||||
-rw-r--r-- | pts/test-resources/yafray/install.sh | 46 | ||||
-rw-r--r-- | pts/test-resources/yafray/parse-results.php | 5 |
3 files changed, 63 insertions, 0 deletions
diff --git a/pts/test-resources/yafray/downloads.xml b/pts/test-resources/yafray/downloads.xml new file mode 100644 index 0000000..750c3ff --- /dev/null +++ b/pts/test-resources/yafray/downloads.xml @@ -0,0 +1,12 @@ +<PhoronixTestSuite> + <Downloads> + <Package> + <URL>http://tx-us.lunar-linux.org/lunar/cache/yafray-0.0.9.tar.gz, http://www.yafray.org/sec/2/downloads/yafray-0.0.9.tar.gz</URL> + <MD5>7365122e0ca6f439988f51e8b4db935c</MD5> + </Package> + <Package> + <URL>http://www.phoronix-test-suite.com/benchmark-files/yafray-render-1.tar.bz2, http://www.phoronix.net/downloads/phoronix-test-suite/benchmark-files/yafray-render-1.tar.bz2</URL> + <MD5>fa4861ec07c431a5274fe44ae5679741</MD5> + </Package> + </Downloads> +</PhoronixTestSuite> diff --git a/pts/test-resources/yafray/install.sh b/pts/test-resources/yafray/install.sh new file mode 100644 index 0000000..c51b158 --- /dev/null +++ b/pts/test-resources/yafray/install.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +tar -xvf yafray-0.0.9.tar.gz +tar -jxvf yafray-render-1.tar.bz2 + +THIS_DIR=$(pwd) +mkdir $THIS_DIR/yafray_ + +echo "--- linux-settings.py.orig 2008-06-02 14:00:50.000000000 -0400 ++++ linux-settings.py 2008-06-02 14:01:11.000000000 -0400 +@@ -8,7 +8,7 @@ + + def init(args): + global prefix +- prefix = args.get('prefix','/usr/local') ++ prefix = \"$THIS_DIR/yafray_\" + + def get_libpath(args): return prefix+\"/lib\" + def get_pluginpath(args): return prefix+\"/lib/yafray\" + +--- SConstruct.orig 2008-06-02 15:00:15.000000000 -0400 ++++ SConstruct 2008-06-02 15:00:35.000000000 -0400 +@@ -3,7 +3,7 @@ + import configio + import globalinfo + +-prefix=ARGUMENTS.get('prefix','/usr/local') ++prefix=\"$THIS_DIR/yafray_/\" + + ficheros = { + 'darwin' : 'darwin-settings', +" > yafray/install-patch + +cd yafray/ +patch -p0 < install-patch +scons +scons install +cd .. +rm -rf yafray/ + +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 +chmod +x yafray-run diff --git a/pts/test-resources/yafray/parse-results.php b/pts/test-resources/yafray/parse-results.php new file mode 100644 index 0000000..6f8e4e5 --- /dev/null +++ b/pts/test-resources/yafray/parse-results.php @@ -0,0 +1,5 @@ +<?php + +$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "Render Time:") + 12); +echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds"))); +?> |