]> diplodocus.org Git - nmh/blobdiff - test/install-mh/test-install-mh
Expanded allowed text in mhical parse error message.
[nmh] / test / install-mh / test-install-mh
index 561f3c1a9308c37460eb731e97f8dabd01761ca8..7afe64b484de1a3706b596cfd81cc8f501560ba0 100755 (executable)
@@ -16,16 +16,19 @@ fi
 
 setup_test
 
 
 setup_test
 
-install-mh - >/dev/null 2>&1 || true  # gcov
+check_exit '-eq 1' install-mh -
 
 # check with no options, with nmh already installed
 
 # check with no options, with nmh already installed
+start_test "with no options, with nmh already installed"
 run_test "install-mh" \
     'install-mh: You already have an nmh profile, use an editor to modify it'
 
 # check -auto, with nmh already installed
 run_test "install-mh" \
     'install-mh: You already have an nmh profile, use an editor to modify it'
 
 # check -auto, with nmh already installed
+start_test "-auto, with nmh already installed"
 run_test "install-mh -auto" 'install-mh: invocation error'
 
 # check -check, with nmh already installed
 run_test "install-mh -auto" 'install-mh: invocation error'
 
 # check -check, with nmh already installed
+start_test "-check, with nmh already installed"
 run_test "install-mh -check" ''
 # make sure exit status is 0
 run_prog install-mh -check
 run_test "install-mh -check" ''
 # make sure exit status is 0
 run_prog install-mh -check
@@ -35,6 +38,7 @@ run_test "echo $?" '0'
 rm -rf $MH_TEST_DIR/Mail
 
 # check -check, with nmh not installed
 rm -rf $MH_TEST_DIR/Mail
 
 # check -check, with nmh not installed
+start_test "-check, with nmh not installed"
 run_test "install-mh -check" ''
 # make sure exit status is 1
 set +e
 run_test "install-mh -check" ''
 # make sure exit status is 1
 set +e
@@ -43,6 +47,7 @@ run_test "echo $?" '1'
 set -e
 
 # check with no options, with nmh not installed.  Use canned
 set -e
 
 # check with no options, with nmh not installed.  Use canned
+start_test "with no options, with nmh not installed.  Use canned"
 # responses to install.
 installpath=`echo $MH_TEST_DIR/Mail | sed 's%^/%%'`
 echo "n
 # responses to install.
 installpath=`echo $MH_TEST_DIR/Mail | sed 's%^/%%'`
 echo "n
@@ -70,4 +75,5 @@ else
 fi
 
 
 fi
 
 
+finish_test
 exit $failed
 exit $failed