added tests that check to ensure stdout is working
This commit is contained in:
@@ -76,6 +76,42 @@ diff tmp tests/test.pdf
|
|||||||
echo "diff test complete: test.pdf"
|
echo "diff test complete: test.pdf"
|
||||||
rm tmp*
|
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"
|
echo "Running multi-file tests"
|
||||||
./multi tests/*
|
./multi tests/*
|
||||||
zstd -d tests/test.pdf.zst -o tests/tmp
|
zstd -d tests/test.pdf.zst -o tests/tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user