about summary refs log tree commit diff
path: root/test/stdin-ppm3.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-07-03 18:59:15 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-07-03 18:59:15 +0000
commitaaf1a66284edff4e65d11ad8a4ba22b59c3d7a10 (patch)
treec02828d16e477c8b5739e4d2f2caa87dd6ef685c /test/stdin-ppm3.test
parent193fcba8c448bbf06cc91ed3f49bf22d947b59f7 (diff)
downloadnetpbm-mirror-aaf1a66284edff4e65d11ad8a4ba22b59c3d7a10.tar.gz
netpbm-mirror-aaf1a66284edff4e65d11ad8a4ba22b59c3d7a10.tar.xz
netpbm-mirror-aaf1a66284edff4e65d11ad8a4ba22b59c3d7a10.zip
Don't use nonstandard echo -n
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4361 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/stdin-ppm3.test')
-rwxr-xr-xtest/stdin-ppm3.test18
1 files changed, 8 insertions, 10 deletions
diff --git a/test/stdin-ppm3.test b/test/stdin-ppm3.test
index 605b535b..064e3e22 100755
--- a/test/stdin-ppm3.test
+++ b/test/stdin-ppm3.test
@@ -1,4 +1,4 @@
-#! /bin/sh
+o#! /bin/sh
 # This script tests: ppmtobmp bmptopnm
 # This script tests: ppmtoilbm ilbmtoppm
 # This script tests: ppmtoleaf leaftoppm
@@ -33,26 +33,24 @@ for fmt in \
         pj \
         spu \
         xpm
-  do
-  testprog1="ppmto"${fmt}
+do
+  if [ ${fmt} = "xpm" ]
+    then testprog1="ppmto${fmt} -name small";
+  else 	 testprog1="ppmto${fmt}";
+  fi
   if [ ${fmt} = "bmp" ]
     then testprog2=${fmt}"topnm";
-  else testprog2=${fmt}"toppm";
+  else   testprog2=${fmt}"toppm";
   fi
 
   if [ ${fmt} = "spu" ]
     then test_ppm=${large_ppm};
-  else test_ppm=${small_ppm};
+  else   test_ppm=${small_ppm};
   fi
 
   ${testprog1} ${test_ppm} > ${out1};    status1=$?
   ${testprog1} < ${test_ppm} > ${out2};  status2=$?
   test -s ${out1};                       status3=$?
-  if [ ${fmt} = "xpm" ]
-    then
-    sed -i '/^static char/s/static char .* = {/static char file/' \
-	    ${out1} ${out2};
-  fi
   cmp -s ${out1} ${out2}
   echo ${testprog1}": "${status1} ${status2} ${status3} $?
   rm ${out2}