diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-03-15 01:08:56 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-03-15 01:08:56 +0000 |
commit | 7c693525f2e51e7ac4089dd95f5d1210d86bfbc8 (patch) | |
tree | 180a9f967c24b5cd0884e0dbde9bd926f6281f1f /test/pbmclean.test | |
parent | 4d1f58c55c54071ddc85785a9da42674f7485880 (diff) | |
download | netpbm-mirror-7c693525f2e51e7ac4089dd95f5d1210d86bfbc8.tar.gz netpbm-mirror-7c693525f2e51e7ac4089dd95f5d1210d86bfbc8.tar.xz netpbm-mirror-7c693525f2e51e7ac4089dd95f5d1210d86bfbc8.zip |
New tests
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3761 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pbmclean.test')
-rwxr-xr-x | test/pbmclean.test | 17 |
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 |