diff options
Diffstat (limited to 'test/cis-roundtrip.test')
-rwxr-xr-x | test/cis-roundtrip.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/cis-roundtrip.test b/test/cis-roundtrip.test new file mode 100755 index 00000000..62fcc3b9 --- /dev/null +++ b/test/cis-roundtrip.test @@ -0,0 +1,14 @@ +#! /bin/bash +# This script tests: pbmtocis cistopbm +# Also requires: pbmmake pamcut + + +# Output images produced by pbmtocis are of fixed size, +# either 128x96 or 256x192. +# Smaller input images are padded, larger ones are cropped. + +# Test 1. Should print 2631579683 1546 +pbmmake -g 128 96 | pbmtocis | cistopbm | cksum + +# Test 2. Should print 2425386270 41 +pbmtocis testgrid.pbm | cistopbm | pamcut 0 0 14 16 | cksum |