diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-05-25 14:07:33 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-05-25 14:07:33 -0400 |
commit | fc635762ece539a164eb70d857d7dc1f5780e712 (patch) | |
tree | 3ec0a36bd62f3f422f93ad9141c06e1dca9e0fdc /pts/test-resources/compress-gzip | |
parent | 5382b4ba91d413a14d6c4bb52d609e062f66a672 (diff) | |
download | phoronix-test-suite-upstream-fc635762ece539a164eb70d857d7dc1f5780e712.tar.gz phoronix-test-suite-upstream-fc635762ece539a164eb70d857d7dc1f5780e712.tar.xz phoronix-test-suite-upstream-fc635762ece539a164eb70d857d7dc1f5780e712.zip |
Updates to compress-gzip and compress-pbzip2
Diffstat (limited to 'pts/test-resources/compress-gzip')
-rw-r--r-- | pts/test-resources/compress-gzip/downloads.xml | 9 | ||||
-rwxr-xr-x[-rw-r--r--] | pts/test-resources/compress-gzip/install.sh | 13 | ||||
-rwxr-xr-x | pts/test-resources/compress-gzip/post.sh | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | pts/test-resources/compress-gzip/pre.sh | 3 |
4 files changed, 10 insertions, 19 deletions
diff --git a/pts/test-resources/compress-gzip/downloads.xml b/pts/test-resources/compress-gzip/downloads.xml deleted file mode 100644 index bd2ea08..0000000 --- a/pts/test-resources/compress-gzip/downloads.xml +++ /dev/null @@ -1,9 +0,0 @@ -<PhoronixTestSuite> - <Downloads> - <Package> - <URL>http://www.phoronix-test-suite.com/benchmark-files/pts-trondheim-wav.tar.gz</URL> - <MD5>0e81dd50b98ae73579189352cccce3e5</MD5> - <DownloadTo>SHARED</DownloadTo> - </Package> - </Downloads> -</PhoronixTestSuite> diff --git a/pts/test-resources/compress-gzip/install.sh b/pts/test-resources/compress-gzip/install.sh index 34521b1..890b850 100644..100755 --- a/pts/test-resources/compress-gzip/install.sh +++ b/pts/test-resources/compress-gzip/install.sh @@ -2,20 +2,15 @@ cd $1 -if [ ! -f ../pts-shared/pts-trondheim.wav ] - then - tar -xvf ../pts-shared/pts-trondheim-wav.tar.gz -C ../pts-shared/ -fi - -cat > gzip_bigfile <<EOT +cat > gzip_process <<EOT #!/bin/sh -for i in 1 2 3 4 5 6 7 8; do cat ../pts-shared/pts-trondheim.wav; done|gzip -c >/dev/null +cat compressfile | gzip -c > /dev/null EOT -chmod +x gzip_bigfile +chmod +x gzip_process cat > compress-gzip <<EOT #!/bin/sh -/usr/bin/time -f "Gzip Compress Time: %e Seconds" ./gzip_bigfile 2>&1 +/usr/bin/time -f "Gzip Compress Time: %e Seconds" ./gzip_process 2>&1 EOT chmod +x compress-gzip diff --git a/pts/test-resources/compress-gzip/post.sh b/pts/test-resources/compress-gzip/post.sh new file mode 100755 index 0000000..dec0258 --- /dev/null +++ b/pts/test-resources/compress-gzip/post.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd $1 +rm -f compressfile diff --git a/pts/test-resources/compress-gzip/pre.sh b/pts/test-resources/compress-gzip/pre.sh index 62da97a..396666e 100644..100755 --- a/pts/test-resources/compress-gzip/pre.sh +++ b/pts/test-resources/compress-gzip/pre.sh @@ -1,4 +1,5 @@ #!/bin/sh cd $1 -cat ../pts-shared/pts-trondheim.wav > /dev/null +dd if=/dev/urandom of=compressfile bs=1024 count=524288 + |