From be71d9f416a205d4dd977b93f5f96f97e8628cca Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 3 Feb 2022 01:26:10 +0000 Subject: Add stdin tests, et al git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4272 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/cut-cat-roundtrip.test | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/cut-cat-roundtrip.test') diff --git a/test/cut-cat-roundtrip.test b/test/cut-cat-roundtrip.test index f9928b30..c2799a7b 100755 --- a/test/cut-cat-roundtrip.test +++ b/test/cut-cat-roundtrip.test @@ -12,12 +12,12 @@ padded_ppm=${tmpdir}/padded.ppm echo "Test 1. Should print 1926073387 101484 six times" -testimg_ppm_sum=`cat testimg.ppm | cksum` +testimg_ppm_sum=`cksum < testimg.ppm` echo ${testimg_ppm_sum} - imgsize=$(pamfile -size testimg.ppm) - width=$(echo ${imgsize} | cut -d " " -f 1) - height=$(echo ${imgsize} | cut -d " " -f 2) +imgsize=$(pamfile -size testimg.ppm) +width=$(echo ${imgsize} | cut -d " " -f 1) +height=$(echo ${imgsize} | cut -d " " -f 2) for i in 0 1 128 224 225 do @@ -83,7 +83,7 @@ padded_pbm=${tmpdir}/padded.pbm echo "Test 5. Should print 281226646 481 six times" -maze_pbm_sum=`cat maze.pbm | cksum` +maze_pbm_sum=`cksum < maze.pbm` echo ${maze_pbm_sum} imgsize=$(pamfile -size maze.pbm) -- cgit 1.4.1