diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-07-10 17:21:08 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-07-10 17:21:08 -0400 |
commit | d0e3262f339ee12212fe88050f6f320ca5e211f7 (patch) | |
tree | d334056bdaa751cb7a5ee6dde109041952d07717 /pts/test-resources | |
parent | e6011aea50c4de0c071b88a61904493e4e1c0e0a (diff) | |
download | phoronix-test-suite-upstream-d0e3262f339ee12212fe88050f6f320ca5e211f7.tar.gz phoronix-test-suite-upstream-d0e3262f339ee12212fe88050f6f320ca5e211f7.tar.xz phoronix-test-suite-upstream-d0e3262f339ee12212fe88050f6f320ca5e211f7.zip |
pts: Add fio disk test profile (fio)
Diffstat (limited to 'pts/test-resources')
-rw-r--r-- | pts/test-resources/fio/downloads.xml | 8 | ||||
-rwxr-xr-x | pts/test-resources/fio/install.sh | 11 | ||||
-rw-r--r-- | pts/test-resources/fio/parse-results.php | 5 |
3 files changed, 24 insertions, 0 deletions
diff --git a/pts/test-resources/fio/downloads.xml b/pts/test-resources/fio/downloads.xml new file mode 100644 index 0000000..b7f926b --- /dev/null +++ b/pts/test-resources/fio/downloads.xml @@ -0,0 +1,8 @@ +<PhoronixTestSuite> + <Downloads> + <Package> + <URL>http://brick.kernel.dk/snaps/fio-1.21.tar.bz2</URL> + <MD5>129b20d20868bc482b7316f0e327c930</MD5> + </Package> + </Downloads> +</PhoronixTestSuite> diff --git a/pts/test-resources/fio/install.sh b/pts/test-resources/fio/install.sh new file mode 100755 index 0000000..9e0631e --- /dev/null +++ b/pts/test-resources/fio/install.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +tar -xjf fio-1.21.tar.bz2 +cd fio/ +make -j $NUM_CPU_JOBS +cd .. + +echo "#!/bin/sh +cd fio/ +/usr/bin/time -f \"Total fio Run-Time: %e Seconds\" ./fio \$@ 2>&1" > fio-run +chmod +x fio-run diff --git a/pts/test-resources/fio/parse-results.php b/pts/test-resources/fio/parse-results.php new file mode 100644 index 0000000..6977e14 --- /dev/null +++ b/pts/test-resources/fio/parse-results.php @@ -0,0 +1,5 @@ +<?php + +$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "Total fio Run-Time:") + 19); +echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds"))); +?> |