diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-01-02 16:28:37 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-01-02 16:28:37 +0000 |
commit | 71d4c2e05abc34d82d505c96af9bd918846f9cec (patch) | |
tree | 41e3c5cc4dcba05e59843dbed2cf8f4eca2c98d2 /test/g3-roundtrip.test | |
parent | e165c1cd02e9ea5b868b0a43b20e1bd96d40e6ff (diff) | |
download | netpbm-mirror-71d4c2e05abc34d82d505c96af9bd918846f9cec.tar.gz netpbm-mirror-71d4c2e05abc34d82d505c96af9bd918846f9cec.tar.xz netpbm-mirror-71d4c2e05abc34d82d505c96af9bd918846f9cec.zip |
use aliases to make tests easier to read and modify; add white line to top in Pnmshear test
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2098 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/g3-roundtrip.test')
-rwxr-xr-x | test/g3-roundtrip.test | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/test/g3-roundtrip.test b/test/g3-roundtrip.test index e00997f6..323a26bf 100755 --- a/test/g3-roundtrip.test +++ b/test/g3-roundtrip.test @@ -2,14 +2,19 @@ # This script tests: g3topbm pbmtog3 # Also requires: pnmcrop -${PBM_TESTPREFIX}pbmtog3 -nofixedwidth testgrid.pbm | \ -${PBM_TESTPREFIX}g3topbm -width=14 | cmp -s - testgrid.pbm + alias g3topbm="${PBM_TESTPREFIX}g3topbm" + alias pbmtog3="${PBM_TESTPREFIX}pbmtog3" + alias pnmcrop="${PBM_BINPREFIX}pnmcrop" + shopt -s expand_aliases + +pbmtog3 -nofixedwidth testgrid.pbm | \ +g3topbm -width=14 | cmp -s - testgrid.pbm echo $? -${PBM_TESTPREFIX}pbmtog3 -nofixedwidth -reversebits testgrid.pbm | \ -${PBM_TESTPREFIX}g3topbm -width=14 -reversebits | cmp -s - testgrid.pbm +pbmtog3 -nofixedwidth -reversebits testgrid.pbm | \ +g3topbm -width=14 -reversebits | cmp -s - testgrid.pbm echo $? -${PBM_TESTPREFIX}pbmtog3 testgrid.pbm | \ -${PBM_TESTPREFIX}g3topbm | ${PBM_BINPREFIX}pnmcrop -white -right -bottom | \ +pbmtog3 testgrid.pbm | \ +g3topbm | pnmcrop -white -right -bottom | \ cmp -s - testgrid.pbm ; echo $? |