about summary refs log tree commit diff
path: root/test/pamchannel.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/pamchannel.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/pamchannel.test')
-rwxr-xr-xtest/pamchannel.test16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/pamchannel.test b/test/pamchannel.test
index f83dd3b6..e3da552c 100755
--- a/test/pamchannel.test
+++ b/test/pamchannel.test
@@ -2,6 +2,10 @@
 # This script tests: pamchannel
 # Also requires: pamtopnm
 
+  alias pamchannel="${PBM_TESTPREFIX}pamchannel"
+  alias pamtopnm="${PBM_BINPREFIX}pamtopnm"
+  shopt -s expand_aliases
+
 
 # Extract planes one by one.
 # Convert output to pgm to make it identical to ppmtorgb3 output.
@@ -16,17 +20,17 @@
 # Test 1. red channel
 # Should produce 1571496937 33838
 
-${PBM_TESTPREFIX}pamchannel -infile testimg.ppm 0 | \
-  ${PBM_BINPREFIX}pamtopnm --assume | cksum
+pamchannel -infile testimg.ppm 0 | \
+  pamtopnm --assume | cksum
 
 # Test 2. green channel
 # Should produce  394856971 33838
 
-${PBM_TESTPREFIX}pamchannel -infile testimg.ppm 1 | \
-  ${PBM_BINPREFIX}pamtopnm --assume | cksum
+pamchannel -infile testimg.ppm 1 | \
+  pamtopnm --assume | cksum
 
 # Test 3. blue channel
 # Should produce 3164158573 33838
 
-${PBM_TESTPREFIX}pamchannel -infile testimg.ppm 2 | \
-  ${PBM_BINPREFIX}pamtopnm --assume | cksum
+pamchannel -infile testimg.ppm 2 | \
+  pamtopnm --assume | cksum