X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/fa462ef71fbaf819397c59b2c07adf45a04af9f8..a69b69121b49e6de84d0e8bf0e39ba3a96b67188:/test/repl/test-repl?ds=inline diff --git a/test/repl/test-repl b/test/repl/test-repl index 63d99dde..7de80246 100755 --- a/test/repl/test-repl +++ b/test/repl/test-repl @@ -19,6 +19,8 @@ fi setup_test +check_exit '-eq 1' repl - # gcov + expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/Mail/draft @@ -29,13 +31,13 @@ Usage: repl: [+folder] [msg] [switches] switches are: -[no]group -[no]annotate - -cc all|to|cc|me - -nocc type + -[no]cc all|to|cc|me -draftfolder +folder -draftmessage msg -nodraftfolder -editor editor -noedit + -convertargs type argstring -fcc folder -filter filterfile -form formfile @@ -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