about summary refs log tree commit diff
path: root/test/pbmclean.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-06-08 16:41:37 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-06-08 16:41:37 +0000
commit7013617be07aa6cc9cb6a12d39e135bb59a8f75e (patch)
treed150d105530f064eafdd670dead19fc45b5449b6 /test/pbmclean.test
parent31bcb07d386170e7c65495b5c0b4ad173b74b911 (diff)
downloadnetpbm-mirror-7013617be07aa6cc9cb6a12d39e135bb59a8f75e.tar.gz
netpbm-mirror-7013617be07aa6cc9cb6a12d39e135bb59a8f75e.tar.xz
netpbm-mirror-7013617be07aa6cc9cb6a12d39e135bb59a8f75e.zip
miscellaneous test updates, especially invalid command line option combinations
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3624 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pbmclean.test')
-rwxr-xr-xtest/pbmclean.test25
1 files changed, 21 insertions, 4 deletions
diff --git a/test/pbmclean.test b/test/pbmclean.test
index a8e469b1..b9ea0937 100755
--- a/test/pbmclean.test
+++ b/test/pbmclean.test
@@ -1,19 +1,36 @@
 #! /bin/bash
 # This script tests: pbmclean
-# Also requires: pbmmake pbmpage pnmmargin pnmpad
+# Also requires: pbmmake pbmpage pbmtext pnmmargin pnmpad
 
 
 tmpdir=${tmpdir:-/tmp}
 test_pbm=${tmpdir}/test.pbm
+sheet_pbm=${tmpdir}/sheet.pbm
+
+echo "Test 1"
 
 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
+  do
+  pbmclean -min=${n} -black -plain ${test_pbm}
+  done
 
 rm ${test_pbm}
 
+
+echo "Test 2"
+
 # Should print 760076056 4210813
 pbmpage 1 | pbmclean -black | cksum
+
+
+echo "Test 3"
+
+pbmtext -dump-sheet > ${sheet_pbm}
+for n in 1 2 3 4 5 6 7 8 9 10
+  do
+  pbmclean -min=${n} -extended  ${sheet_pbm} | cksum
+  done
+
+rm ${sheet_pbm}