summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/compress-7zip
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-04-29 11:23:21 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-04-29 11:23:21 -0400
commitd2993872f1e7598e90e22cada8d58fabcb6443c1 (patch)
treee104a8cca259dcce012c95f3a7d311c1f9981fdd /pts/test-resources/compress-7zip
parentd8f940cde35c8423043bd37c58f00f57e901e66b (diff)
downloadphoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.tar.gz
phoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.tar.xz
phoronix-test-suite-upstream-d2993872f1e7598e90e22cada8d58fabcb6443c1.zip
Change benchmark-profiles/, benchmark-resources/, and benchmark-suites/ to test-profiles/, test-resources/, and test-suites/
Diffstat (limited to 'pts/test-resources/compress-7zip')
-rw-r--r--pts/test-resources/compress-7zip/downloads.xml8
-rw-r--r--pts/test-resources/compress-7zip/install.sh12
-rw-r--r--pts/test-resources/compress-7zip/parse-results.php14
3 files changed, 34 insertions, 0 deletions
diff --git a/pts/test-resources/compress-7zip/downloads.xml b/pts/test-resources/compress-7zip/downloads.xml
new file mode 100644
index 0000000..3243308
--- /dev/null
+++ b/pts/test-resources/compress-7zip/downloads.xml
@@ -0,0 +1,8 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://internap.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.57_src_all.tar.bz2</URL>
+ <MD5>773f78d8b297eb858626667d4dfa93c7</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/compress-7zip/install.sh b/pts/test-resources/compress-7zip/install.sh
new file mode 100644
index 0000000..809acc9
--- /dev/null
+++ b/pts/test-resources/compress-7zip/install.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+cd $1
+
+tar -xjf p7zip_4.57_src_all.tar.bz2
+cd p7zip_4.57/
+make -j $NUM_CPU_JOBS
+cd ..
+
+echo "#!/bin/sh
+./p7zip_4.57/bin/7za b" > compress-7zip
+chmod +x compress-7zip
diff --git a/pts/test-resources/compress-7zip/parse-results.php b/pts/test-resources/compress-7zip/parse-results.php
new file mode 100644
index 0000000..e8bad66
--- /dev/null
+++ b/pts/test-resources/compress-7zip/parse-results.php
@@ -0,0 +1,14 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], strpos($argv[1], "Avr:"));
+$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n"));
+$array = explode(" ", $BENCHMARK_RESULTS);
+$array2 = array();
+
+foreach($array as $value)
+ if(!empty($value))
+ array_push($array2, $value);
+
+if(!empty($array2[3]))
+ echo $array2[3];
+?>