diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-05-22 08:44:35 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-05-22 08:44:35 -0400 |
commit | 3443bc82d07d3b7f126ef9ec092468dd48339ade (patch) | |
tree | 2c3497fe936fd70acdb794c73b677fffa056d3ef /pts/test-resources/build-apache | |
parent | f6e6bd576c7f21a18a8947709119d2e85251bc9c (diff) | |
download | phoronix-test-suite-upstream-3443bc82d07d3b7f126ef9ec092468dd48339ade.tar.gz phoronix-test-suite-upstream-3443bc82d07d3b7f126ef9ec092468dd48339ade.tar.xz phoronix-test-suite-upstream-3443bc82d07d3b7f126ef9ec092468dd48339ade.zip |
Add build-apache test profile...
Diffstat (limited to 'pts/test-resources/build-apache')
-rw-r--r-- | pts/test-resources/build-apache/downloads.xml | 8 | ||||
-rw-r--r-- | pts/test-resources/build-apache/install.sh | 13 | ||||
-rw-r--r-- | pts/test-resources/build-apache/parse-results.php | 5 | ||||
-rw-r--r-- | pts/test-resources/build-apache/post.sh | 4 |
4 files changed, 30 insertions, 0 deletions
diff --git a/pts/test-resources/build-apache/downloads.xml b/pts/test-resources/build-apache/downloads.xml new file mode 100644 index 0000000..3936828 --- /dev/null +++ b/pts/test-resources/build-apache/downloads.xml @@ -0,0 +1,8 @@ +<PhoronixTestSuite> + <Downloads> + <Package> + <URL>http://www.apache.org/dist/httpd/httpd-2.2.8.tar.gz, http://www.alliedquotes.com/mirrors/apache/httpd/httpd-2.2.8.tar.gz, http://apache.oregonstate.edu/httpd/httpd-2.2.8.tar.gz, http://apache.mirror.facebook.com/httpd/httpd-2.2.8.tar.gz</URL> + <MD5>39a755eb0f584c279336387b321e3dfc</MD5> + </Package> + </Downloads> +</PhoronixTestSuite> diff --git a/pts/test-resources/build-apache/install.sh b/pts/test-resources/build-apache/install.sh new file mode 100644 index 0000000..5a47330 --- /dev/null +++ b/pts/test-resources/build-apache/install.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +cd $1 + +echo "#!/bin/sh +rm -rf httpd-2.2.8/ +tar -xvf httpd-2.2.8.tar.gz +cd httpd-2.2.8/ +./configure > /dev/null +sleep 3 +time -f \"Apache Build Time: %e Seconds\" make -s -j \$NUM_CPU_JOBS 2>&1 | grep Seconds" > time-compile-apache + +chmod +x time-compile-apache diff --git a/pts/test-resources/build-apache/parse-results.php b/pts/test-resources/build-apache/parse-results.php new file mode 100644 index 0000000..39cdace --- /dev/null +++ b/pts/test-resources/build-apache/parse-results.php @@ -0,0 +1,5 @@ +<?php + +$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "Apache Build Time:") + 18); +echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds"))); +?> diff --git a/pts/test-resources/build-apache/post.sh b/pts/test-resources/build-apache/post.sh new file mode 100644 index 0000000..085b962 --- /dev/null +++ b/pts/test-resources/build-apache/post.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd $1 +rm -rf httpd-2.2.8/ |