From: Paul Cruz Date: Fri, 7 Jul 2017 17:29:06 +0000 (-0700) Subject: added tests that check to ensure stdout is working X-Git-Tag: v1.3.1^2~13^2^2~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7e6b358d04d8b1da2599ed039c1c12d301db6f2;p=thirdparty%2Fzstd.git added tests that check to ensure stdout is working --- diff --git a/contrib/adaptive-compression/run.sh b/contrib/adaptive-compression/run.sh index b906ae7d1..f030be555 100755 --- a/contrib/adaptive-compression/run.sh +++ b/contrib/adaptive-compression/run.sh @@ -76,6 +76,42 @@ diff tmp tests/test.pdf echo "diff test complete: test.pdf" rm tmp* +cat tests/test2048.pdf | ./multi > tmp.zst +zstd -d tmp.zst +diff tmp tests/test2048.pdf +echo "diff test complete: test2048.pdf" +rm tmp* + +cat tests/test512.pdf | ./multi > tmp.zst +zstd -d tmp.zst +diff tmp tests/test512.pdf +echo "diff test complete: test512.pdf" +rm tmp* + +cat tests/test64.pdf | ./multi > tmp.zst +zstd -d tmp.zst +diff tmp tests/test64.pdf +echo "diff test complete: test64.pdf" +rm tmp* + +cat tests/test16.pdf | ./multi > tmp.zst +zstd -d tmp.zst +diff tmp tests/test16.pdf +echo "diff test complete: test16.pdf" +rm tmp* + +cat tests/test4.pdf | ./multi > tmp.zst +zstd -d tmp.zst +diff tmp tests/test4.pdf +echo "diff test complete: test4.pdf" +rm tmp* + +cat tests/test.pdf | ./multi > tmp.zst +zstd -d tmp.zst +diff tmp tests/test.pdf +echo "diff test complete: test.pdf" +rm tmp* + echo "Running multi-file tests" ./multi tests/* zstd -d tests/test.pdf.zst -o tests/tmp