From 380588e187c12000ac8082cb2a20a905d3c422a5 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 29 Jun 2013 19:19:47 +0000 Subject: Release 10.63.00 git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@1968 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/rgb3-roundtrip.test | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/rgb3-roundtrip.test') diff --git a/test/rgb3-roundtrip.test b/test/rgb3-roundtrip.test index 9cc45499..d3575b95 100755 --- a/test/rgb3-roundtrip.test +++ b/test/rgb3-roundtrip.test @@ -11,6 +11,9 @@ ${PBM_TESTPREFIX}ppmtorgb3 ${tmpdir}/testimg.ppm && ${PBM_TESTPREFIX}rgb3toppm ${tmpdir}/testimg.red ${tmpdir}/testimg.grn \ ${tmpdir}/testimg.blu | cksum +cat ${tmpdir}/testimg.red ${tmpdir}/testimg.grn ${tmpdir}/testimg.blu | \ + cksum + rm ${tmpdir}/testimg.{ppm,red,grn,blu} cp testgrid.pbm ${tmpdir} && @@ -23,9 +26,9 @@ ${PBM_TESTPREFIX}rgb3toppm ${tmpdir}/testgrid.red ${tmpdir}/testgrid.grn \ # With PGM or PBM input, the three monochrome planes should be # identical. Test for this. -diff ${tmpdir}/testgrid.red ${tmpdir}/testgrid.grn ; echo $? -diff ${tmpdir}/testgrid.grn ${tmpdir}/testgrid.blu ; echo $? -${PBM_BINPREFIX}pgmtopgm < testgrid.pbm | diff - ${tmpdir}/testgrid.red; +cmp -s ${tmpdir}/testgrid.red ${tmpdir}/testgrid.grn ; echo $? +cmp -s ${tmpdir}/testgrid.grn ${tmpdir}/testgrid.blu ; echo $? +${PBM_BINPREFIX}pgmtopgm < testgrid.pbm | cmp -s - ${tmpdir}/testgrid.red echo $? rm ${tmpdir}/testgrid.{pbm,red,grn,blu} -- cgit 1.4.1