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.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pbmclean.test b/test/pbmclean.test
index b9ea0937..c0c3a759 100755
--- a/test/pbmclean.test
+++ b/test/pbmclean.test
@@ -34,3 +34,20 @@ for n in 1 2 3 4 5 6 7 8 9 10
   done
 
 rm ${sheet_pbm}
+
+echo "Test Invalid"
+
+test_out=${tmpdir}/test_out
+
+echo 1>&2
+echo "Invalid command-line argument combination." 1>&2
+echo "An error message should appear below the line." 1>&2
+echo "-----------------------------------------------------------" 1>&2
+
+# overspecification
+pbmclean -black -white -min=1 -extended testgrid.pbm > ${test_out} || \
+   echo -n "Expected failure 1"; test -s ${test_out}; echo " "$?
+
+# note that without -extended the above is valid.
+
+rm -f ${test_out}
\ No newline at end of file