diff options
Diffstat (limited to 'test/jbig-roundtrip.test')
-rwxr-xr-x | test/jbig-roundtrip.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/jbig-roundtrip.test b/test/jbig-roundtrip.test new file mode 100755 index 00000000..5e96a001 --- /dev/null +++ b/test/jbig-roundtrip.test @@ -0,0 +1,11 @@ +#! /bin/bash +# This script tests: pnmtojbig jbigtopnm +# Also requires: pamchannel pamtopnm + + +# Test 1. Should print 2425386270 41 +pnmtojbig testgrid.pbm | jbigtopnm | cksum + +# Test 2. Should print 1571496937 33838 +pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | \ + pnmtojbig | jbigtopnm | cksum |