about summary refs log tree commit diff
path: root/test/targa-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/targa-roundtrip.test')
-rwxr-xr-xtest/targa-roundtrip.test20
1 files changed, 13 insertions, 7 deletions
diff --git a/test/targa-roundtrip.test b/test/targa-roundtrip.test
index 3fac1630..4a99e0e0 100755
--- a/test/targa-roundtrip.test
+++ b/test/targa-roundtrip.test
@@ -2,20 +2,26 @@
 # This script tests: pamtotga tgatoppm
 # Also requires: ppmtopgm 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
 
-${PBM_TESTPREFIX}pamtotga -mono testgrid.pbm | \
-  ${PBM_TESTPREFIX}tgatoppm | ${PBM_BINPREFIX}ppmtopgm | \
-  ${PBM_BINPREFIX}pgmtopbm -threshold -val 0.5 | cksum
+pamtotga -mono testgrid.pbm | \
+  tgatoppm | ppmtopgm | \
+  pgmtopbm -threshold -val 0.5 | cksum
 
 #Test 2: Should print 2871603838 33838, cksum of testimg.pgm
 
-${PBM_BINPREFIX}ppmtopgm testimg.ppm > ${tmpdir}/testimg.pgm
-${PBM_TESTPREFIX}pamtotga -cmap ${tmpdir}/testimg.pgm | \
-  ${PBM_TESTPREFIX}tgatoppm | ${PBM_BINPREFIX}ppmtopgm | cksum
+ppmtopgm testimg.ppm > ${tmpdir}/testimg.pgm
+pamtotga -cmap ${tmpdir}/testimg.pgm | \
+  tgatoppm | ppmtopgm | cksum
 
 rm ${tmpdir}/testimg.pgm
 
 #Test 3: Should print 1926073387 101484, cksum of testimg.ppm
 
-${PBM_TESTPREFIX}pamtotga -rgb testimg.ppm | ${PBM_TESTPREFIX}tgatoppm | cksum
+pamtotga -rgb testimg.ppm | tgatoppm | cksum