about summary refs log tree commit diff
path: root/test/pbmclean.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pbmclean.test')
-rwxr-xr-xtest/pbmclean.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/pbmclean.test b/test/pbmclean.test
new file mode 100755
index 00000000..05fe9338
--- /dev/null
+++ b/test/pbmclean.test
@@ -0,0 +1,16 @@
+#! /bin/bash
+# This script tests: pbmclean
+# Also requires: pbmmake pbmpage pnmmargin
+
+${PBM_BINPREFIX}pbmmake -g 3 3 | ${PBM_BINPREFIX}pnmmargin -black 2 \
+ >${tmpdir}/test.pbm
+
+for n in 1 2 3 4 5 6 7 8
+do
+${PBM_TESTPREFIX}pbmclean -min=$n -black -plain ${tmpdir}/test.pbm
+done
+
+rm ${tmpdir}/test.pbm
+
+# Should print 760076056 4210813
+${PBM_BINPREFIX}pbmpage 1 | ${PBM_TESTPREFIX}pbmclean -black | cksum