about summary refs log tree commit diff
path: root/test/palm-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/palm-roundtrip.test')
-rwxr-xr-xtest/palm-roundtrip.test8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/palm-roundtrip.test b/test/palm-roundtrip.test
index 9c053ba9..b00454ca 100755
--- a/test/palm-roundtrip.test
+++ b/test/palm-roundtrip.test
@@ -8,6 +8,8 @@ test256color_ppm=${tmpdir}/test256color.ppm
 
 # Test 1. Should print 584219238 236  5 times
 
+echo "Test 1"
+
 pamdepth 15 testgrid.pbm | tee ${test4bit_pgm} | cksum
 
 for flags in "" \
@@ -21,7 +23,9 @@ rm ${test4bit_pgm}
 
 # Test 2. Should print 0 4 times
 
-pnmquant 256 testimg.ppm > ${test256color_ppm}
+echo "Test 2"
+
+pnmquant 256 testimg.ppm > ${test256color_ppm} || echo "pnmquant failed"
 
 for flags in "" \
              "-scanline_compression" \
@@ -29,7 +33,7 @@ for flags in "" \
              "-packbits_compression" 
   do pnmtopalm -colormap $flags ${test256color_ppm} | palmtopnm | \
      cmp -s - ${test256color_ppm} > /dev/null
-     echo $?
+     echo ${PIPESTATUS[@]} ":" $?
   done
 
 rm ${test256color_ppm}