about summary refs log tree commit diff
path: root/test/pad-crop-roundtrip.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pad-crop-roundtrip.test')
-rwxr-xr-xtest/pad-crop-roundtrip.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pad-crop-roundtrip.test b/test/pad-crop-roundtrip.test
new file mode 100755
index 00000000..532b6cbd
--- /dev/null
+++ b/test/pad-crop-roundtrip.test
@@ -0,0 +1,8 @@
+#! /bin/bash
+# This script tests: pnmcrop pnmmargin
+# Also requires: 
+
+${PBM_TESTPREFIX}pnmmargin -white 10 testimg.ppm | \
+  ${PBM_TESTPREFIX}pnmcrop | cksum
+${PBM_TESTPREFIX}pnmmargin -white 10 testgrid.pbm | \
+  ${PBM_TESTPREFIX}pnmcrop | cksum