diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-06-28 23:07:55 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-06-28 23:07:55 +0000 |
commit | 11fd0bc3fdbe7b5eb9266a728a81d0bcac91fe32 (patch) | |
tree | 7c40f096dd973943ef563ec87b2a68d8205db4fb /test/pnmremap1.test | |
parent | 89c6ec14eb7514630aea5abc4b90b51d1473d33a (diff) | |
download | netpbm-mirror-11fd0bc3fdbe7b5eb9266a728a81d0bcac91fe32.tar.gz netpbm-mirror-11fd0bc3fdbe7b5eb9266a728a81d0bcac91fe32.tar.xz netpbm-mirror-11fd0bc3fdbe7b5eb9266a728a81d0bcac91fe32.zip |
Promote Stable to Super_stable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@3640 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pnmremap1.test')
-rwxr-xr-x | test/pnmremap1.test | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/pnmremap1.test b/test/pnmremap1.test new file mode 100755 index 00000000..d7c5189c --- /dev/null +++ b/test/pnmremap1.test @@ -0,0 +1,26 @@ +#! /bin/bash +# This script tests: pnmremap +# Also requires: pamseq pamtopnm + + +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. +# May also fail on other non-Intel architectures. +# v. 10.59.2 +# x86-32: 2667816854 101482 +# x86-64: 3602410851 101482 + +pnmremap -mapfile=${palette} -floyd -norandom \ + testimg.ppm | cksum + +#pnmremap -mapfile=${palette255} -floyd -norandom \ +# testimg.ppm | cksum + +rm ${palette} # ${palette255} |