diff options
Diffstat (limited to 'test/pamflip.test')
-rwxr-xr-x | test/pamflip.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/pamflip.test b/test/pamflip.test new file mode 100755 index 00000000..59f8e639 --- /dev/null +++ b/test/pamflip.test @@ -0,0 +1,16 @@ +#! /bin/bash +# This script tests: pamflip +# Also requires: + +# Test 1. Should print 2116496681 101484 +${PBM_TESTPREFIX}pamflip -lr testimg.ppm | cksum +# Test 2. Should print 217037000 101484 +${PBM_TESTPREFIX}pamflip -cw testimg.ppm | cksum +# Test 3. Should print 2052917888 101484 +${PBM_TESTPREFIX}pamflip -tb testimg.ppm | cksum +# Test 4. Should print 3375384165 41 +${PBM_TESTPREFIX}pamflip -lr testgrid.pbm | cksum +# Test 5. Should print 604323149 41 +${PBM_TESTPREFIX}pamflip -tb testgrid.pbm | cksum +# Test 6. Should print 490797850 37 +${PBM_TESTPREFIX}pamflip -cw testgrid.pbm | cksum |