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.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pad-crop-roundtrip.test b/test/pad-crop-roundtrip.test
new file mode 100755
index 00000000..c7780d68
--- /dev/null
+++ b/test/pad-crop-roundtrip.test
@@ -0,0 +1,9 @@
+#! /bin/bash
+# This script tests: pnmcrop pnmmargin
+# Also requires: pnmpad
+
+
+pnmmargin -white 10 testimg.ppm | \
+  pnmcrop | cksum
+pnmmargin -white 10 testgrid.pbm | \
+  pnmcrop | cksum