about summary refs log tree commit diff
path: root/test/pamtopam.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pamtopam.test')
-rwxr-xr-xtest/pamtopam.test11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/pamtopam.test b/test/pamtopam.test
index 1a4cdff6..e2ec5adf 100755
--- a/test/pamtopam.test
+++ b/test/pamtopam.test
@@ -2,8 +2,11 @@
 # This script tests: pamtopam
 # Also requires: 
 
-${PBM_TESTPREFIX}pamtopam < testimg.ppm  | sed '/ENDHDR/q'
-${PBM_TESTPREFIX}pamtopam < testgrid.pbm | sed '/ENDHDR/q'
+  alias pamtopam="${PBM_TESTPREFIX}pamtopam"
+  shopt -s expand_aliases
 
-${PBM_TESTPREFIX}pamtopam < testimg.ppm   | cksum
-${PBM_TESTPREFIX}pamtopam < testgrid.pbm  | cksum
+pamtopam < testimg.ppm  | sed '/ENDHDR/q'
+pamtopam < testgrid.pbm | sed '/ENDHDR/q'
+
+pamtopam < testimg.ppm   | cksum
+pamtopam < testgrid.pbm  | cksum