]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added tests that check to ensure stdout is working
authorPaul Cruz <paulcruz74@fb.com>
Fri, 7 Jul 2017 17:29:06 +0000 (10:29 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Fri, 7 Jul 2017 17:29:06 +0000 (10:29 -0700)
contrib/adaptive-compression/run.sh

index b906ae7d1ef4246a41ca3ed1149bccf6c3b79e77..f030be5553e2d8ca9ca6482fbd4a43ebae13b9e1 100755 (executable)
@@ -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