diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-06-28 17:29:32 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-06-28 17:29:32 +0000 |
commit | 23ce26f64c34e30951ad9ade2151552ed77e7357 (patch) | |
tree | d73b31a0c2f7c7be4a69f8a8e84e00dd39c432b5 /test/pad-crop-roundtrip.test | |
parent | 1b6e51a266008348ad93ed8b6ac9ec91b5024fea (diff) | |
download | netpbm-mirror-23ce26f64c34e30951ad9ade2151552ed77e7357.tar.gz netpbm-mirror-23ce26f64c34e30951ad9ade2151552ed77e7357.tar.xz netpbm-mirror-23ce26f64c34e30951ad9ade2151552ed77e7357.zip |
promote Advanced to Stable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4558 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pad-crop-roundtrip.test')
-rwxr-xr-x | test/pad-crop-roundtrip.test | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/test/pad-crop-roundtrip.test b/test/pad-crop-roundtrip.test index c7780d68..31e02c99 100755 --- a/test/pad-crop-roundtrip.test +++ b/test/pad-crop-roundtrip.test @@ -1,9 +1,26 @@ -#! /bin/bash -# This script tests: pnmcrop pnmmargin -# Also requires: pnmpad +#! /bin/sh +# This script tests: pnmcrop pnmmargin pnmpad +# Also requires: +# Test 1. Should produce 1926073387 101484, cksum of testimg.ppm pnmmargin -white 10 testimg.ppm | \ pnmcrop | cksum -pnmmargin -white 10 testgrid.pbm | \ + +# Test 2. Should produce 1926073387 101484 + +pnmpad -white -left 10 -top 10 testimg.ppm | \ + pnmpad -white -right 10 -bottom 10 | \ + pnmcrop -right -bottom | pnmcrop -left -top | cksum + +# Test 3. Should produce 281226646 481, cksum of maze.pbm + +pnmmargin -white 10 maze.pbm | \ pnmcrop | cksum + +# Test 4. Should produce 281226646 481 + +pnmpad -white -left 10 -top 10 maze.pbm | \ + pnmpad -white -right 10 -bottom 10 | \ + pnmcrop -left -right | pnmcrop -top -bottom | cksum + |