]> diplodocus.org Git - nmh/blobdiff - test/install-mh/test-install-mh
Get coverage of quite a few of the `ambiguous switch' case.
[nmh] / test / install-mh / test-install-mh
index 9798e5ede843be2a906bb2016af355b25afd3c91..5cd0bbf246bbdb20fe03911471da1bc78f8f969b 100755 (executable)
@@ -16,6 +16,8 @@ fi
 
 setup_test
 
+! install-mh - >/dev/null 2>&1 # gcov
+
 # check 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'
@@ -49,7 +51,7 @@ n
 $installpath
 y" | run_prog install-mh >/dev/null
 
-if [ -f $MH_TEST_DIR/Mail/context  -a  -f $MH_TEST_DIR/Mail/.mh_profile ]; then
+if [ -f $MH_TEST_DIR/Mail/context  -a  -f "$MH" ]; then
   run_prog install-mh -check
 else
   failed=`expr ${failed:-0} + 1`
@@ -61,7 +63,7 @@ fi
 rm -rf $MH_TEST_DIR/Mail
 HOME=$MH_TEST_DIR install-mh -auto >/dev/null
 
-if [ -f $MH_TEST_DIR/Mail/context  -a  -f $MH_TEST_DIR/Mail/.mh_profile ]; then
+if [ -f $MH_TEST_DIR/Mail/context  -a  -f "$MH" ]; then
   run_prog install-mh -check
 else
   failed=`expr ${failed:-0} + 1`