diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-10-05 01:43:04 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-10-05 01:43:04 +0000 |
commit | e280163b05263c979c69d671f7ce2351485bab15 (patch) | |
tree | 95ad27c5d5cddc39d2f06e7841ca013f58c66f4d /test | |
parent | fe48013a77a03d11a71812f839bd43d89fe98269 (diff) | |
download | netpbm-mirror-e280163b05263c979c69d671f7ce2351485bab15.tar.gz netpbm-mirror-e280163b05263c979c69d671f7ce2351485bab15.tar.xz netpbm-mirror-e280163b05263c979c69d671f7ce2351485bab15.zip |
Use 'pamcat' instead of 'pnmcat'
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4446 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test')
-rwxr-xr-x | test/cut-cat-roundtrip.test | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/cut-cat-roundtrip.test b/test/cut-cat-roundtrip.test index c2799a7b..274cb865 100755 --- a/test/cut-cat-roundtrip.test +++ b/test/cut-cat-roundtrip.test @@ -1,6 +1,6 @@ #! /bin/sh # This script tests: pamcut -# Also requires: pamfile pnmcat pnmpad pnmcrop +# Also requires: pamfile pamcat pnmpad pnmcrop tmpdir=${tmpdir:-/tmp} @@ -23,7 +23,7 @@ for i in 0 1 128 224 225 do pamcut -left=$((i+1)) testimg.ppm > ${right_ppm} pamcut -right=$i testimg.ppm > ${left_ppm} - pnmcat -lr ${left_ppm} ${right_ppm} | \ + pamcat -lr ${left_ppm} ${right_ppm} | \ pamcut -left=0 -width=${width} | cksum rm ${left_ppm} ${right_ppm} done @@ -38,7 +38,7 @@ for border in 0 1 128 224 225 do pamcut -left=$((${border}+1)) -width=${width} -pad testimg.ppm > ${right_ppm} pamcut -right=${border} -width=${width} -pad testimg.ppm > ${left_ppm} - pnmcat -lr ${left_ppm} ${right_ppm} ${left_ppm} | \ + pamcat -lr ${left_ppm} ${right_ppm} ${left_ppm} | \ pamcut -left=$((${width}-${border}-1)) -width=$((${width}*2)) | \ tee ${padded_ppm} | cksum | tr '\n' ' ' pnmcrop -black -right ${padded_ppm} | cksum @@ -53,7 +53,7 @@ for border in 0 1 70 147 do pamcut -top=$((${border}+1)) testimg.ppm > ${bottom_ppm} pamcut -bottom=${border} testimg.ppm > ${top_ppm} - pnmcat -tb ${top_ppm} ${bottom_ppm} | \ + pamcat -tb ${top_ppm} ${bottom_ppm} | \ pamcut -top=0 -height=${height} | cksum rm ${top_ppm} ${bottom_ppm} done @@ -68,7 +68,7 @@ for border in 0 1 70 147 pamcut -top=$((${border}+1)) -height=${height} -pad testimg.ppm \ > ${bottom_ppm} pamcut -bottom=${border} -height=${height} -pad testimg.ppm > ${top_ppm} - pnmcat -tb ${top_ppm} ${bottom_ppm} ${top_ppm} | \ + pamcat -tb ${top_ppm} ${bottom_ppm} ${top_ppm} | \ pamcut -top=$((${height}-${border}-1)) -height=$((${height}*2)) | \ tee ${padded_ppm} | cksum | tr '\n' ' 'cksum pnmcrop -black -bottom ${padded_ppm} | cksum @@ -94,7 +94,7 @@ for i in 0 1 10 30 50 do pamcut -left=$((i+1)) maze.pbm > ${right_ppm} pamcut -right=$i maze.pbm > ${left_ppm} - pnmcat -lr ${left_ppm} ${right_ppm} | \ + pamcat -lr ${left_ppm} ${right_ppm} | \ pamcut -left=0 -width=${width} | cksum rm ${left_ppm} ${right_ppm} done @@ -110,7 +110,7 @@ for border in 0 1 10 30 50 do pamcut -left=$((${border}+1)) -width=${width} -pad maze.pbm > ${right_ppm} pamcut -right=${border} -width=${width} -pad maze.pbm > ${left_ppm} - pnmcat -lr ${left_ppm} ${right_ppm} ${left_ppm} | \ + pamcat -lr ${left_ppm} ${right_ppm} ${left_ppm} | \ pamcut -left=$((${width}-${border}-1)) -width=$((${width}*2)) | \ tee ${padded_ppm} | cksum | tr '\n' ' ' pnmcrop -black -right ${padded_ppm} | cksum @@ -125,7 +125,7 @@ for border in 0 1 12 21 31 44 do pamcut -top=$((${border}+1)) maze.pbm > ${bottom_ppm} pamcut -bottom=${border} maze.pbm > ${top_ppm} - pnmcat -tb ${top_ppm} ${bottom_ppm} | \ + pamcat -tb ${top_ppm} ${bottom_ppm} | \ pamcut -top=0 -height=${height} | cksum rm ${top_ppm} ${bottom_ppm} done @@ -139,7 +139,7 @@ for border in 0 1 10 50 do pamcut -top=$((${border}+1)) -height=${height} -pad maze.pbm > ${bottom_ppm} pamcut -bottom=${border} -height=${height} -pad maze.pbm > ${top_ppm} - pnmcat -tb ${top_ppm} ${bottom_ppm} ${top_ppm} | \ + pamcat -tb ${top_ppm} ${bottom_ppm} ${top_ppm} | \ pamcut -top=$((${height}-${border}-1)) -height=$((${height}*2)) | \ tee ${padded_ppm} | cksum | tr '\n' ' 'cksum pnmcrop -black -bottom ${padded_ppm} | cksum |