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/pnmremap2.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/pnmremap2.test')
-rwxr-xr-x | test/pnmremap2.test | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/pnmremap2.test b/test/pnmremap2.test index f2fd92e0..3399dc39 100755 --- a/test/pnmremap2.test +++ b/test/pnmremap2.test @@ -2,20 +2,26 @@ # 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 2. Default (unmodified quantization) -${PBM_TESTPREFIX}pnmremap -mapfile=${tmpdir}/palette -nofloyd \ +pnmremap -mapfile=${tmpdir}/palette -nofloyd \ testimg.ppm | cksum # Test 3. Use first color in palette for missing colors -${PBM_TESTPREFIX}pnmremap -mapfile=${tmpdir}/palette255 -nofloyd \ +pnmremap -mapfile=${tmpdir}/palette255 -nofloyd \ -firstisdefault testimg.ppm | cksum # Test 4. Use black for missing colors -${PBM_TESTPREFIX}pnmremap -mapfile=${tmpdir}/palette255 -nofloyd \ +pnmremap -mapfile=${tmpdir}/palette255 -nofloyd \ -missingcolor=black testimg.ppm | cksum rm ${tmpdir}/palette{,255} |