diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-09-26 16:03:01 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-09-26 16:03:01 +0000 |
commit | 67e1689f9d7e6b8dfffe393f2d318e3e374c7a36 (patch) | |
tree | 5943a3e98e1f12ed80d92e2cb8c5623d8af9fcd3 /test/targa-roundtrip.test | |
parent | fd6e24ededb4ee1e92e101ea50fe21d88630c17f (diff) | |
download | netpbm-mirror-67e1689f9d7e6b8dfffe393f2d318e3e374c7a36.tar.gz netpbm-mirror-67e1689f9d7e6b8dfffe393f2d318e3e374c7a36.tar.xz netpbm-mirror-67e1689f9d7e6b8dfffe393f2d318e3e374c7a36.zip |
Promote current development as Release 10.68
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2294 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/targa-roundtrip.test')
-rwxr-xr-x | test/targa-roundtrip.test | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/test/targa-roundtrip.test b/test/targa-roundtrip.test index 4a99e0e0..66e666c6 100755 --- a/test/targa-roundtrip.test +++ b/test/targa-roundtrip.test @@ -1,11 +1,10 @@ #! /bin/bash # This script tests: pamtotga tgatoppm -# Also requires: ppmtopgm pgmtopbm +# Also requires: pgmtopbm alias pamtotga="${PBM_TESTPREFIX}pamtotga" alias tgatoppm="${PBM_TESTPREFIX}tgatoppm" alias pgmtopbm="${PBM_BINPREFIX}pgmtopbm" - alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm" shopt -s expand_aliases #Test 1: Should print 2425386270 41, cksum of testgrid.pbm @@ -14,13 +13,9 @@ pamtotga -mono testgrid.pbm | \ tgatoppm | ppmtopgm | \ pgmtopbm -threshold -val 0.5 | cksum -#Test 2: Should print 2871603838 33838, cksum of testimg.pgm - -ppmtopgm testimg.ppm > ${tmpdir}/testimg.pgm -pamtotga -cmap ${tmpdir}/testimg.pgm | \ - tgatoppm | ppmtopgm | cksum - -rm ${tmpdir}/testimg.pgm +#Test 2: Should produce 1571496937 33838, cksum of testimg.red +pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | \ + pamtotga -cmap | tgatoppm | ppmtopgm | cksum #Test 3: Should print 1926073387 101484, cksum of testimg.ppm |