diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-03-30 17:12:47 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-03-30 17:12:47 +0000 |
commit | 04afde0b11367018d95be801c543fdcf16420b5d (patch) | |
tree | 8c1ecbdf40aa57ff7fe47234708e3a2995d2b641 /test/pnmremap1.test | |
parent | fbf4dcdf76bf004ea45a762e8399268cc388ae19 (diff) | |
download | netpbm-mirror-04afde0b11367018d95be801c543fdcf16420b5d.tar.gz netpbm-mirror-04afde0b11367018d95be801c543fdcf16420b5d.tar.xz netpbm-mirror-04afde0b11367018d95be801c543fdcf16420b5d.zip |
Update to current Development release - 10.66.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2172 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pnmremap1.test')
-rwxr-xr-x | test/pnmremap1.test | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/pnmremap1.test b/test/pnmremap1.test index 1e68c8ad..208be2fb 100755 --- a/test/pnmremap1.test +++ b/test/pnmremap1.test @@ -2,9 +2,15 @@ # This script tests: pnmremap # Also requires: pamdepth pamseq pamtopnm -${PBM_BINPREFIX}pamseq 3 5 -tupletype=RGB | ${PBM_BINPREFIX}pamtopnm \ + alias pnmremap="${PBM_TESTPREFIX}pnmremap" + alias pamdepth="${PBM_BINPREFIX}pamdepth" + alias pamseq="${PBM_BINPREFIX}pamseq" + alias pamtopnm="${PBM_BINPREFIX}pamtopnm" + shopt -s expand_aliases + +pamseq 3 5 -tupletype=RGB | pamtopnm \ > ${tmpdir}/palette -${PBM_BINPREFIX}pamdepth 255 ${tmpdir}/palette > ${tmpdir}/palette255 +pamdepth 255 ${tmpdir}/palette > ${tmpdir}/palette255 # Test 1. Floyd-Steinberg # This fails with older versions of Netpbm and x86-64. @@ -13,7 +19,7 @@ ${PBM_BINPREFIX}pamdepth 255 ${tmpdir}/palette > ${tmpdir}/palette255 # x86-32: 2667816854 101482 # x86-64: 3602410851 101482 -${PBM_TESTPREFIX}pnmremap -mapfile=${tmpdir}/palette -floyd -norandom \ +pnmremap -mapfile=${tmpdir}/palette -floyd -norandom \ testimg.ppm | cksum rm ${tmpdir}/palette{,255} |