diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2017-12-02 03:00:27 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2017-12-02 03:00:27 +0000 |
commit | 33df17eedb1d9220f280115a3300ac655ac03a38 (patch) | |
tree | edf0d30db574387ecf55d69e96f241674c2b14b7 /test | |
parent | d36652df912a61bcca7cfca9b952fc97cfc597c8 (diff) | |
download | netpbm-mirror-33df17eedb1d9220f280115a3300ac655ac03a38.tar.gz netpbm-mirror-33df17eedb1d9220f280115a3300ac655ac03a38.tar.xz netpbm-mirror-33df17eedb1d9220f280115a3300ac655ac03a38.zip |
Don't be affected by differences in Pnmquant output on different systems
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3095 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test')
-rw-r--r-- | test/palm-roundtrip.ok | 9 | ||||
-rwxr-xr-x | test/palm-roundtrip.test | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/test/palm-roundtrip.ok b/test/palm-roundtrip.ok index 6c9114a4..42bfe3db 100644 --- a/test/palm-roundtrip.ok +++ b/test/palm-roundtrip.ok @@ -3,8 +3,7 @@ 584219238 236 584219238 236 584219238 236 -600373046 101484 -600373046 101484 -600373046 101484 -600373046 101484 -600373046 101484 +1 +1 +1 +1 diff --git a/test/palm-roundtrip.test b/test/palm-roundtrip.test index 5570e968..8699a3d1 100755 --- a/test/palm-roundtrip.test +++ b/test/palm-roundtrip.test @@ -19,14 +19,17 @@ for flags in "" \ rm ${test4bit_pgm} -# Test 2. Should print 600373046 101484 5 times +# Test 2. Should print 1 4 times -pnmquant 256 testimg.ppm | tee ${test256color_ppm} | cksum +pnmquant 256 testimg.ppm > ${test256color_ppm} for flags in "" \ "-scanline_compression" \ "-rle_compression" \ "-packbits_compression" - do pnmtopalm -colormap $flags ${test256color_ppm} | palmtopnm | cksum; done + do pnmtopalm -colormap $flags ${test256color_ppm} | \ + cmp -s - ${test256color_ppm} > /dev/null + echo $? + done rm ${test256color_ppm} |