#! /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