X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9383ac2311caa190a93fd6694c6c82390cabf044..11eaebe50c6562b8919bc8d2a457c87269083818:/test/post/test-sendfiles?ds=sidebyside diff --git a/test/post/test-sendfiles b/test/post/test-sendfiles index 4e2eb612..2d1ba24a 100755 --- a/test/post/test-sendfiles +++ b/test/post/test-sendfiles @@ -58,14 +58,14 @@ test_sendfiles () # fakesendmail drops the message and any cc's into this mbox. mbox="$MH_TEST_DIR"/Mail/fakesendmail.mbox inc -silent -file "$mbox" - rm -f "$mbox" "$mbox.map" + rm -f "$mbox" mhlist -verbose last | sed -e 's/ *$//' -e 's/\(octet-stream\).*$/\1/' \ >"$actual" (cd $MH_TEST_DIR/tmp && contents=`mhstore -noauto last 2>&1 | \ sed -e 's/storing message.*as file //'` && - $uncompress "$contents" | tar xpf - && rm -f "$contents") + $uncompress <"$contents" | tar xpf - && rm -f "$contents") rmm last check "$testfiledir/$testfile" "$MH_TEST_DIR/tmp/$testfile" \ @@ -83,14 +83,13 @@ Usage: sendfiles [switches] -to recipient -subject subject file1 [file2 ...] switches are: -compress [bzip2 | compress | gzip | lzma | none] -from - -[delay] (expressed in seconds) -version -help Can use PERSON environment variable instead of -from switch. EOF #### Skip nmh intro text. -run_prog sendfiles -help | sed '/^$/,$d' >"$actual" 2>&1 +run_prog sendfiles -help 2>&1 | sed '/^$/,$d' >"$actual" check "$expected" "$actual" # check -version @@ -108,7 +107,6 @@ run_test 'sendfiles -nonexistent' "Usage: sendfiles [switches] -to recipient \ switches are: -compress [bzip2 | compress | gzip | lzma | none] -from - -[delay] (expressed in seconds) -version -help Can use PERSON environment variable instead of -from switch." @@ -123,7 +121,6 @@ Usage: sendfiles [switches] -to recipient \ switches are: -compress [bzip2 | compress | gzip | lzma | none] -from - -[delay] (expressed in seconds) -version -help Can use PERSON environment variable instead of -from switch." @@ -189,26 +186,6 @@ EOF PERSON='Sender ' test_sendfiles cat new -compress none -# check -delay, though for a small file it doesn't do anything -cat >"$expected" <"$expected" <