]> diplodocus.org Git - nmh/blobdiff - test/repl/test-repl
Gain coverage with `mhparam localmbox'.
[nmh] / test / repl / test-repl
index 20bb96d79e2a12ba4080946925b4db855f3fe0bb..af88077173813a102afc5ac0c9153125337d3c7a 100755 (executable)
@@ -19,6 +19,8 @@ fi
 
 setup_test
 
+! repl - >/dev/null 2>&1 # gcov
+
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/Mail/draft
 
@@ -55,8 +57,9 @@ Usage: repl: [+folder] [msg] [switches]
   -nofmtproc
 EOF
 
-run_prog repl -help >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+run_prog repl -help | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
 
 # check -version
 case `repl -v` in