diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-07-06 22:04:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-07-06 22:04:28 +0000 |
commit | 2a82091a45d67cadfc93148176a446ffd67021f6 (patch) | |
tree | 97de970b798441206a6294867eac8a8b9ea49b3b /test/gif-quant-roundtrip.test | |
parent | 9ebbf59ad1a4272a182172f190908ea3f4d7227b (diff) | |
download | netpbm-mirror-2a82091a45d67cadfc93148176a446ffd67021f6.tar.gz netpbm-mirror-2a82091a45d67cadfc93148176a446ffd67021f6.tar.xz netpbm-mirror-2a82091a45d67cadfc93148176a446ffd67021f6.zip |
Use red plane of testimg.ppm for test PGM input; rewrite file names which use tmpdir in the manner of symmetry.test; add some failure messages
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2225 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/gif-quant-roundtrip.test')
-rwxr-xr-x | test/gif-quant-roundtrip.test | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/gif-quant-roundtrip.test b/test/gif-quant-roundtrip.test index b5f69edd..7f99ca6e 100755 --- a/test/gif-quant-roundtrip.test +++ b/test/gif-quant-roundtrip.test @@ -11,10 +11,13 @@ colors=15 # any value between 2 - 256 works -pnmquant $colors testimg.ppm > ${tmpdir}/quant.ppm && -pamtogif ${tmpdir}/quant.ppm | giftopnm | \ - cmp -s - ${tmpdir}/quant.ppm > /dev/null +tmpdir=${tmpdir:-/tmp} +quant_ppm=${tmpdir}/quant.ppm + +pnmquant ${colors} testimg.ppm > ${quant_ppm} && +pamtogif ${quant_ppm} | giftopnm | \ + cmp -s - ${quant_ppm} > /dev/null echo $? -rm ${tmpdir}/quant.ppm +rm ${quant_ppm} |