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/pnmremap1.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/pnmremap1.test')
-rwxr-xr-x | test/pnmremap1.test | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/pnmremap1.test b/test/pnmremap1.test index 208be2fb..20bee75d 100755 --- a/test/pnmremap1.test +++ b/test/pnmremap1.test @@ -8,9 +8,12 @@ alias pamtopnm="${PBM_BINPREFIX}pamtopnm" shopt -s expand_aliases -pamseq 3 5 -tupletype=RGB | pamtopnm \ - > ${tmpdir}/palette -pamdepth 255 ${tmpdir}/palette > ${tmpdir}/palette255 +tmpdir=${tmpdir:-/tmp} +palette=${tmpdir}/palette +#palette255=${tmpdir}/palette255 + +pamseq 3 5 -tupletype=RGB | pamtopnm > ${palette} +#pamdepth 255 ${palette} > ${palette255} # Test 1. Floyd-Steinberg # This fails with older versions of Netpbm and x86-64. @@ -19,7 +22,10 @@ pamdepth 255 ${tmpdir}/palette > ${tmpdir}/palette255 # x86-32: 2667816854 101482 # x86-64: 3602410851 101482 -pnmremap -mapfile=${tmpdir}/palette -floyd -norandom \ +pnmremap -mapfile=${palette} -floyd -norandom \ testimg.ppm | cksum -rm ${tmpdir}/palette{,255} +#pnmremap -mapfile=${palette255} -floyd -norandom \ +# testimg.ppm | cksum + +rm ${palette} # ${palette255} |