diff options
Diffstat (limited to 'test/pbmclean.test')
-rwxr-xr-x | test/pbmclean.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/pbmclean.test b/test/pbmclean.test new file mode 100755 index 00000000..a8e469b1 --- /dev/null +++ b/test/pbmclean.test @@ -0,0 +1,19 @@ +#! /bin/bash +# This script tests: pbmclean +# Also requires: pbmmake pbmpage pnmmargin pnmpad + + +tmpdir=${tmpdir:-/tmp} +test_pbm=${tmpdir}/test.pbm + +pbmmake -g 3 3 | pnmmargin -black 2 > ${test_pbm} + +for n in 1 2 3 4 5 6 7 8 +do +pbmclean -min=$n -black -plain ${test_pbm} +done + +rm ${test_pbm} + +# Should print 760076056 4210813 +pbmpage 1 | pbmclean -black | cksum |