summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-06-02 15:20:05 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-06-02 15:20:05 -0400
commitc7655b0c9e714ea2d067ee0a6ad4e46f5b02ea06 (patch)
tree32d813948c5032072bbed0a1db640dce6a4c6f9f
parent9e90e3f8ecfec1c19d47cfad904527b77887a364 (diff)
downloadphoronix-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
-rw-r--r--CHANGE-LOG1
-rw-r--r--pts/test-profiles/yafray.xml23
-rw-r--r--pts/test-resources/yafray/downloads.xml12
-rw-r--r--pts/test-resources/yafray/install.sh46
-rw-r--r--pts/test-resources/yafray/parse-results.php5
5 files changed, 87 insertions, 0 deletions
diff --git a/CHANGE-LOG b/CHANGE-LOG
index a9862e7..c13bcc1 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -30,6 +30,7 @@ Phoronix Test Suite
- Debian package generator now at pts-core/scripts/build-package-deb.php
- Move user-agreement.txt to pts-core/
- Add SCons to external dependencies support
+- Add yafray test profile for open-source ray-tracing
- Miscellaneous fixes and other improvements
diff --git a/pts/test-profiles/yafray.xml b/pts/test-profiles/yafray.xml
new file mode 100644
index 0000000..008f18d
--- /dev/null
+++ b/pts/test-profiles/yafray.xml
@@ -0,0 +1,23 @@
+<PhoronixTestSuite>
+ <TestProfile>
+ <Version>0.9.0</Version>
+ <TestType>System</TestType>
+ <SoftwareType>Utility</SoftwareType>
+ <License>FREE</License>
+ <Status>VERIFIED</Status>
+ <Maintainer>Michael Larabel</Maintainer>
+ <DownloadSize>2.9</DownloadSize>
+ <EnvironmentSize>28.9</EnvironmentSize>
+ </TestProfile>
+ <TestInformation>
+ <Title>YafRay</Title>
+ <Version>0.0.9</Version>
+ <SubTitle>Open-Source Ray Tracing Render</SubTitle>
+ <Executable>yafray-run</Executable>
+ <TimesToRun>1</TimesToRun>
+ <ResultScale>Seconds</ResultScale>
+ <Proportion>LIB</Proportion>
+ <Description>YaFray (Yet Another Free Raytracer) is an open-source raytracing program. Most notably, this engine has been integrated into the Blender 3D software and uses an XML scene description language. This test measures how long it takes YaFray to render a scene.</Description>
+ <ExternalDependencies>build-utilities, scons</ExternalDependencies>
+ </TestInformation>
+</PhoronixTestSuite>
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")));
+?>