diff options
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} |