From 33df17eedb1d9220f280115a3300ac655ac03a38 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 2 Dec 2017 03:00:27 +0000 Subject: 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 --- test/palm-roundtrip.ok | 9 ++++----- test/palm-roundtrip.test | 9 ++++++--- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'test') 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} -- cgit 1.4.1