about summary refs log tree commit diff
path: root/test/pad-crop-roundtrip.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-05-30 02:11:23 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-05-30 02:11:23 +0000
commit5314448e55da76bf33edeebc0c17c0866ce2c879 (patch)
tree4bf04d9c9a34aaee9306cd0fa66099ae3116dea5 /test/pad-crop-roundtrip.test
parentc95f75ad52009a53373192c6512baa89bbca5608 (diff)
downloadnetpbm-mirror-5314448e55da76bf33edeebc0c17c0866ce2c879.tar.gz
netpbm-mirror-5314448e55da76bf33edeebc0c17c0866ce2c879.tar.xz
netpbm-mirror-5314448e55da76bf33edeebc0c17c0866ce2c879.zip
Various new tests and corrections
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3621 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pad-crop-roundtrip.test')
-rwxr-xr-xtest/pad-crop-roundtrip.test15
1 files changed, 12 insertions, 3 deletions
diff --git a/test/pad-crop-roundtrip.test b/test/pad-crop-roundtrip.test
index c7780d68..75979901 100755
--- a/test/pad-crop-roundtrip.test
+++ b/test/pad-crop-roundtrip.test
@@ -1,9 +1,18 @@
 #! /bin/bash
-# This script tests: pnmcrop pnmmargin
-# Also requires: pnmpad
-
+# This script tests: pnmcrop pnmmargin pnmpad
+# Also requires:
 
 pnmmargin -white 10 testimg.ppm | \
   pnmcrop | cksum
+
+pnmpad -white -left 10 -top 10 testimg.ppm | \
+  pnmpad -white -right 10 -bottom 10 | \
+  pnmcrop -right -bottom | pnmcrop -left -top | cksum
+
 pnmmargin -white 10 testgrid.pbm | \
   pnmcrop | cksum
+
+pnmpad -white -left 10 -top 10 testgrid.pbm | \
+  pnmpad -white -right 10 -bottom 10 | \
+  pnmcrop -left -right | pnmcrop -top -bottom | cksum
+