about summary refs log tree commit diff
path: root/test/utahrle-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/utahrle-roundtrip.test')
-rwxr-xr-xtest/utahrle-roundtrip.test12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/utahrle-roundtrip.test b/test/utahrle-roundtrip.test
index 83bc6c90..dd88265c 100755
--- a/test/utahrle-roundtrip.test
+++ b/test/utahrle-roundtrip.test
@@ -1,18 +1,14 @@
 #! /bin/bash
 # This script tests: pnmtorle rletopnm
-# Also requires: ppmtopgm
+# Also requires: 
 
   alias pnmtorle="${PBM_TESTPREFIX}pnmtorle"
   alias rletopnm="${PBM_TESTPREFIX}rletopnm"
-  alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm"
   shopt -s expand_aliases
 
-#Test 1.  Should print 2871603838 33838, cksum of testimg.pgm
-ppmtopgm testimg.ppm > ${tmpdir}/testimg.pgm
-pnmtorle ${tmpdir}/testimg.pgm | \
-  rletopnm | cksum
-
-rm ${tmpdir}/testimg.pgm
+#Test 1.  Should produce 1571496937 33838, cksum of testimg.red
+pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | \
+  pnmtorle | rletopnm | cksum
 
 #Test 2.  Should print 1926073387 101484, cksum of testimg.ppm
 pnmtorle testimg.ppm | \