X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/58e2db8c886765caf1ce294ba8336fe683bcd888..d807e761d3a99fc39d7999fed37074e865e888b5:/test/comp/test-comp-format diff --git a/test/comp/test-comp-format b/test/comp/test-comp-format index f1c25635..30747c72 100755 --- a/test/comp/test-comp-format +++ b/test/comp/test-comp-format @@ -13,6 +13,34 @@ fi setup_test +check_exit '-eq 1' comp - +check_exit '-eq 1' comp -xyzzy +check_exit '-eq 0' comp -help +check_exit '-eq 0' comp -version +check_exit '-eq 1' comp -build -noedit -editor +check_exit '-eq 1' comp -whatnowproc +check_exit '-eq 1' comp -whatnowproc '' - +check_exit '-eq 1' comp -use -nouse -form +check_exit '-eq 1' comp -file +check_exit '-eq 1' comp -file foo -file +check_exit '-eq 1' comp -nodraftfolder -draftfolder +check_exit '-eq 1' comp -draftfolder foo -draftfolder +check_exit '-eq 1' comp -draftmessage +check_exit '-eq 1' comp -draftmessage foo -draftmessage +check_exit '-eq 1' comp -to +check_exit '-eq 1' comp -cc +check_exit '-eq 1' comp -from +check_exit '-eq 1' comp -fcc +check_exit '-eq 1' comp -fcc @ - +check_exit '-eq 1' comp -width +check_exit '-eq 1' comp -width 0 +check_exit '-eq 1' comp -subject +check_exit '-eq 1' comp + @ +check_exit '-eq 1' comp 42 314 +check_exit '-eq 1' comp -form foo 42 +check_exit '-eq 1' comp + +check_exit '-eq 1' comp 42 + # # Create a test template file (we create one here just in case the master # one changes) @@ -54,6 +82,7 @@ Subject: ${subject} -------- EOF +run_prog \ comp -editor true -form "${form}" -from "${from}" -to "${to1}" -to "${to2}" \ -cc "${cc1}" -cc "${cc2}" -cc "${cc3}" -cc "${cc4}" -fcc "${fcc1}" \ -fcc "${fcc2}" -subject "${subject}" -width 60 -nowhatnowproc || exit 1