]> diplodocus.org Git - nmh/blobdiff - test/repl/test-repl
Replace fputc() with putchar().
[nmh] / test / repl / test-repl
index 042bf4ef62cab527f7a56e2716e4a020e755995a..3e014f6cf1366534b1cb4e39c48b7085eb1150aa 100755 (executable)
@@ -29,13 +29,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 +55,9 @@ Usage: repl: [+folder] [msg] [switches]
   -nofmtproc
 EOF
 
-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
@@ -88,7 +89,7 @@ Comments: In-reply-to Test1 <test1@example.com>
 --------
 EOF
 
-repl -cc me -editor true -nowhatnowproc 1
+run_prog repl -cc me -editor true -nowhatnowproc 1
 check $expected $actual
 
 # check -nocc me
@@ -105,7 +106,7 @@ Comments: In-reply-to Test1 <test1@example.com>
 --------
 EOF
 
-repl -cc me -nocc me -editor true -nowhatnowproc 1
+run_prog repl -cc me -nocc me -editor true -nowhatnowproc 1
 check $expected $actual
 
 # check -cc me with Local- and Alternate-Mailbox addtions, Bug #36635:
@@ -125,7 +126,7 @@ Comments: In-reply-to Test1 <test1@example.com>
 --------
 EOF
 
-repl -cc me -editor true -nowhatnowproc 1
+run_prog repl -cc me -editor true -nowhatnowproc 1
 check $expected $actual
 
 
@@ -144,7 +145,7 @@ Comments: In-reply-to Test1 <test1@example.com>
 --------
 EOF
 
-repl -cc me -nocc me -editor true -nowhatnowproc 1
+run_prog repl -cc me -nocc me -editor true -nowhatnowproc 1
 check $expected $actual
 
 
@@ -175,7 +176,7 @@ Comments: In-reply-to Test11 <test11@example.com>
 --------
 EOF
 
-repl -cc to -editor true -nowhatnowproc 11
+run_prog repl -cc to -editor true -nowhatnowproc 11
 check $expected $actual