about summary refs log tree commit diff
path: root/test/ppmchange-roundtrip.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-01-02 16:28:37 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-01-02 16:28:37 +0000
commit71d4c2e05abc34d82d505c96af9bd918846f9cec (patch)
tree41e3c5cc4dcba05e59843dbed2cf8f4eca2c98d2 /test/ppmchange-roundtrip.test
parente165c1cd02e9ea5b868b0a43b20e1bd96d40e6ff (diff)
downloadnetpbm-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/ppmchange-roundtrip.test')
-rwxr-xr-xtest/ppmchange-roundtrip.test18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/ppmchange-roundtrip.test b/test/ppmchange-roundtrip.test
index c303c11b..a357870e 100755
--- a/test/ppmchange-roundtrip.test
+++ b/test/ppmchange-roundtrip.test
@@ -2,10 +2,16 @@
 # This script tests: ppmchange
 # Also requires: pgmtopbm pnminvert ppmtopgm
 
-${PBM_TESTPREFIX}ppmchange black white white black testgrid.pbm | \
-${PBM_BINPREFIX}pnminvert | ${PBM_BINPREFIX}ppmtopgm | \
-${PBM_BINPREFIX}pgmtopbm -th -val=0.5 | cksum
+  alias ppmchange="${PBM_TESTPREFIX}ppmchange"
+  alias pgmtopbm="${PBM_BINPREFIX}pgmtopbm"
+  alias pnminvert="${PBM_BINPREFIX}pnminvert"
+  alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm"
+  shopt -s expand_aliases
 
-${PBM_TESTPREFIX}ppmchange  black white white black testgrid.pbm | \
-${PBM_TESTPREFIX}ppmchange  black white white black -plain  | \
-${PBM_BINPREFIX}ppmtopgm | ${PBM_BINPREFIX}pgmtopbm -th -val=0.5 | cksum
+ppmchange black white white black testgrid.pbm | \
+pnminvert | ppmtopgm | \
+pgmtopbm -th -val=0.5 | cksum
+
+ppmchange  black white white black testgrid.pbm | \
+ppmchange  black white white black -plain  | \
+ppmtopgm | pgmtopbm -th -val=0.5 | cksum