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/xwd-roundtrip.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/xwd-roundtrip.test')
-rwxr-xr-x | test/xwd-roundtrip.test | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/xwd-roundtrip.test b/test/xwd-roundtrip.test index e24db7bc..b5614f01 100755 --- a/test/xwd-roundtrip.test +++ b/test/xwd-roundtrip.test @@ -2,13 +2,21 @@ # This script tests: pnmtoxwd xwdtopnm # Also requires: pamdepth ppmtopgm + alias pnmtoxwd="${PBM_TESTPREFIX}pnmtoxwd" + alias xwdtopnm="${PBM_TESTPREFIX}xwdtopnm" + alias pamdepth="${PBM_BINPREFIX}pamdepth" + alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm" + shopt -s expand_aliases + # Test 1. Should produce 2871603838 33838 # which is the output of ppmtopgm testimg.ppm | cksum -${PBM_BINPREFIX}ppmtopgm testimg.ppm | ${PBM_TESTPREFIX}pnmtoxwd | \ - ${PBM_TESTPREFIX}xwdtopnm | ${PBM_BINPREFIX}pamdepth 255 | cksum +ppmtopgm testimg.ppm | pnmtoxwd | \ + xwdtopnm | pamdepth 255 | cksum -${PBM_TESTPREFIX}pnmtoxwd --quiet testimg.ppm | \ - ${PBM_TESTPREFIX}xwdtopnm --quiet | ${PBM_BINPREFIX}pamdepth 255 | cksum +# Test 2. Should produce 1926073387 101484 +pnmtoxwd --quiet testimg.ppm | \ + xwdtopnm --quiet | pamdepth 255 | cksum -${PBM_TESTPREFIX}pnmtoxwd --quiet testgrid.pbm | \ - ${PBM_TESTPREFIX}xwdtopnm | cksum +# Test 3. Should produce 2425386270 41 +pnmtoxwd --quiet testgrid.pbm | \ + xwdtopnm | cksum |