diff options
Diffstat (limited to 'test/pamflip1.test')
-rw-r--r-- | test/pamflip1.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pamflip1.test b/test/pamflip1.test new file mode 100644 index 00000000..0f60b72b --- /dev/null +++ b/test/pamflip1.test @@ -0,0 +1,17 @@ +#! /bin/bash +# This script tests: pamflip +# Also requires: + + alias pamflip="${PBM_TESTPREFIX}pamflip" + shopt -s expand_aliases + +# Test 1. Should print 2116496681 101484 +pamflip -lr testimg.ppm | cksum +# Test 2. Should print 217037000 101484 +pamflip -cw testimg.ppm | cksum +# Test 3. Should print 2052917888 101484 +pamflip -tb testimg.ppm | cksum +# Test 4. Should print 3375384165 41 +pamflip -lr testgrid.pbm | cksum +# Test 5. Should print 604323149 41 +pamflip -tb testgrid.pbm | cksum |