diff options
Diffstat (limited to 'test/png-roundtrip2.test')
-rwxr-xr-x | test/png-roundtrip2.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/png-roundtrip2.test b/test/png-roundtrip2.test new file mode 100755 index 00000000..af2ad029 --- /dev/null +++ b/test/png-roundtrip2.test @@ -0,0 +1,22 @@ +#! /bin/bash +# This script tests: pngtopam pamtopng +# Also requires: + +# Failure message +## If this test fails and pnm-roundtrip.test succeeds, it indicates +## some problem with pamtopng. +## +## If both tests fail, the likely cause is a problem with pngtopam. +## It is also possible that there is some problem in libpng. + +# Test 1. Should print 1926073387 101484 twice +for flags in "" -gamma=.45 + do + pamtopng testimg.ppm $flags | pngtopam | cksum + done + +# Test 2. Should print 2425386270 41 twice +for flags in "" -gamma=.45 + do + pamtopng testgrid.pbm $flags | pngtopam | cksum + done |