diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-29 11:23:21 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-29 11:23:21 -0400 |
commit | d2993872f1e7598e90e22cada8d58fabcb6443c1 (patch) | |
tree | e104a8cca259dcce012c95f3a7d311c1f9981fdd /pts/test-resources/build-mplayer | |
parent | d8f940cde35c8423043bd37c58f00f57e901e66b (diff) | |
download | phoronix-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/build-mplayer')
-rw-r--r-- | pts/test-resources/build-mplayer/downloads.xml | 8 | ||||
-rw-r--r-- | pts/test-resources/build-mplayer/install.sh | 21 | ||||
-rw-r--r-- | pts/test-resources/build-mplayer/parse-results.php | 5 | ||||
-rw-r--r-- | pts/test-resources/build-mplayer/post.sh | 4 | ||||
-rw-r--r-- | pts/test-resources/build-mplayer/pre.sh | 4 |
5 files changed, 42 insertions, 0 deletions
diff --git a/pts/test-resources/build-mplayer/downloads.xml b/pts/test-resources/build-mplayer/downloads.xml new file mode 100644 index 0000000..6a03ac8 --- /dev/null +++ b/pts/test-resources/build-mplayer/downloads.xml @@ -0,0 +1,8 @@ +<PhoronixTestSuite> + <Downloads> + <Package> + <URL>http://www3.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2</URL> + <MD5>7e27e535c2d267637df34898f1b91707</MD5> + </Package> + </Downloads> +</PhoronixTestSuite> diff --git a/pts/test-resources/build-mplayer/install.sh b/pts/test-resources/build-mplayer/install.sh new file mode 100644 index 0000000..0773532 --- /dev/null +++ b/pts/test-resources/build-mplayer/install.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +cd $1 + +echo "#!/bin/sh + +if [ ! -f MPlayer-1.0rc2.tar.bz2 ] + then + echo \"MPlayer Not Installed... Build Failed.\" + exit +fi + +rm -rf MPlayer-1.0rc2/ +tar -xjf MPlayer-1.0rc2.tar.bz2 +cd MPlayer-1.0rc2/ +./configure > /dev/null +sleep 3 +/usr/bin/time -f \"MPlayer Build Time: %e Seconds\" make -s -j \$NUM_CPU_JOBS 2>&1 | grep Seconds" > time-compile-mplayer + +chmod +x time-compile-mplayer + diff --git a/pts/test-resources/build-mplayer/parse-results.php b/pts/test-resources/build-mplayer/parse-results.php new file mode 100644 index 0000000..36a1d3d --- /dev/null +++ b/pts/test-resources/build-mplayer/parse-results.php @@ -0,0 +1,5 @@ +<?php + +$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "MPlayer Build Time:") + 19); +echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds"))); +?> diff --git a/pts/test-resources/build-mplayer/post.sh b/pts/test-resources/build-mplayer/post.sh new file mode 100644 index 0000000..5bfcf1c --- /dev/null +++ b/pts/test-resources/build-mplayer/post.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd $1 +rm -rf MPlayer-1.0rc2/ diff --git a/pts/test-resources/build-mplayer/pre.sh b/pts/test-resources/build-mplayer/pre.sh new file mode 100644 index 0000000..5bfcf1c --- /dev/null +++ b/pts/test-resources/build-mplayer/pre.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd $1 +rm -rf MPlayer-1.0rc2/ |