diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-02-03 01:26:10 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-02-03 01:26:10 +0000 |
commit | be71d9f416a205d4dd977b93f5f96f97e8628cca (patch) | |
tree | 0426e2bf871948b1a3994a74671f75a3ec8a06e0 /test/cut-cat-roundtrip.test | |
parent | 458cce2de894fb6d9383896d1cbd309ece582b34 (diff) | |
download | netpbm-mirror-be71d9f416a205d4dd977b93f5f96f97e8628cca.tar.gz netpbm-mirror-be71d9f416a205d4dd977b93f5f96f97e8628cca.tar.xz netpbm-mirror-be71d9f416a205d4dd977b93f5f96f97e8628cca.zip |
Add stdin tests, et al
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4272 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/cut-cat-roundtrip.test')
-rwxr-xr-x | test/cut-cat-roundtrip.test | 10 |
1 files changed, 5 insertions, 5 deletions
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) |