diff options
Diffstat (limited to 'test/pnminvert.test')
-rwxr-xr-x | test/pnminvert.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/pnminvert.test b/test/pnminvert.test new file mode 100755 index 00000000..7fc8523c --- /dev/null +++ b/test/pnminvert.test @@ -0,0 +1,20 @@ +#! /bin/bash +# This script tests: pnminvert +# Also requires: pbmmake ppmtopgm + +# Test 1. Should print 1240379484 41 +${PBM_TESTPREFIX}pnminvert testgrid.pbm | cksum +# Test 2. Should print 1416115901 101484 +${PBM_TESTPREFIX}pnminvert testimg.ppm | cksum +# Test 3. Should print 2961441369 33838 +# printed 4215652354 33838 with older ppmtopgm +${PBM_BINPREFIX}ppmtopgm testimg.ppm | ${PBM_TESTPREFIX}pnminvert | cksum +# Test 4. Should print 2595564405 14 +${PBM_BINPREFIX}pbmmake -w 7 7 | ${PBM_TESTPREFIX}pnminvert | cksum +# Test 5. Should print 2595564405 14 +${PBM_BINPREFIX}pbmmake -b 7 7 | cksum +# Test 6. Should print 2595564405 14 +${PBM_BINPREFIX}pbmmake -b 7 7 | ${PBM_TESTPREFIX}pnminvert | \ + ${PBM_TESTPREFIX}pnminvert | cksum +# Test 7. Should print 2896726098 15 +${PBM_BINPREFIX}pbmmake -g 8 8 | ${PBM_TESTPREFIX}pnminvert | cksum |