setup_test
+check_exit '-eq 1' whom -
+
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
EOF
# check -help
+# Only look at first 10 lines because the rest depend on
+# whether sasl support was configured in.
cat >$expected <<EOF
Usage: whom [switches] [file]
switches are:
-nodraftfolder
-version
-help
- -sasl
- -saslmech mechanism
- -user username
- -(port) server port name/number
EOF
-whom -help >$actual 2>&1
+run_prog whom -help | head -10 >$actual 2>&1
check $expected $actual
# check -version