For whatever reason, gcov got fooled by test-whom until a test of
authorDavid Levine <levinedl@acm.org>
Wed, 20 Jun 2012 14:09:24 +0000 (09:09 -0500)
committerDavid Levine <levinedl@acm.org>
Wed, 20 Jun 2012 14:09:24 +0000 (09:09 -0500)
-help was added.

test/whom/test-whom

index 5560446..b3f20eb 100755 (executable)
@@ -32,6 +32,34 @@ Subject: Testing message 1
 This is a draft message.
 EOF
 
+# check -help
+cat >$expected <<EOF
+Usage: whom [switches] [file]
+  switches are:
+  -alias aliasfile
+  -[no]check
+  -draft
+  -(draftf)older +folder
+  -(draftm)essage msg
+  -nodraftfolder
+  -version
+  -help
+  -sasl
+  -saslmech mechanism
+  -user username
+  -(port) server port name/number
+EOF
+
+whom -help >$actual 2>&1
+check $expected $actual
+
+# check -version
+case `whom -v` in
+  whom\ --*) ;;
+  *       ) echo "$0: whom -v generated unexpected output" 1>&2
+            failed=`expr ${failed:-0} + 1`;;
+esac
+
 # check with no options
 run_test 'whom' '  -- Network Recipients --
   user at example.com'