X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c6669231a6cb61da7b7ceee7264101948cf1df35..380046d2c839b074a239cc4c8b866e647ec82eea:/test/post/test-sendfiles?ds=inline diff --git a/test/post/test-sendfiles b/test/post/test-sendfiles index 687c5d9b..64bf2696 100755 --- a/test/post/test-sendfiles +++ b/test/post/test-sendfiles @@ -18,7 +18,7 @@ setup_test expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/$$.actual -localmbox=`$MH_LIB_DIR/ap -format "%(localmbox)" 0` +localmbox=`$MH_LIBEXEC_DIR/ap -format "%(localmbox)" 0` #### Use this script itself for the test file. testfiledir="$srcdir/test/post" testfile=`basename $0` @@ -47,11 +47,11 @@ test_sendfiles () if [ "$argstyle" = 'new' ]; then (cd "$MH_TEST_DIR" && - sendfiles "$@" -to recipient@example.com -subject "sendfiles test" \ - "$testfile" >/dev/null 2>&1) + run_prog sendfiles "$@" -to recipient@example.com \ + -subject "sendfiles test" "$testfile" >/dev/null 2>&1) elif [ "$argstyle" = 'old' ]; then (cd "$MH_TEST_DIR" && - sendfiles "$@" recipient@example.com "sendfiles test" \ + run_prog sendfiles "$@" recipient@example.com "sendfiles test" \ "$testfile" >/dev/null 2>&1) fi @@ -60,7 +60,8 @@ test_sendfiles () inc -silent -file "$mbox" rm -f "$mbox" "$mbox.map" - mhlist -verbose last | sed -e 's/ *$//' >"$actual" + 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 //'` && @@ -88,7 +89,7 @@ Usage: sendfiles [switches] -to recipient -subject subject file1 [file2 ...] Can use PERSON environment variable instead of -from switch. EOF -sendfiles -help >"$actual" 2>&1 +run_prog sendfiles -help >"$actual" 2>&1 check "$expected" "$actual" # check -version @@ -140,7 +141,7 @@ Usage: sendfiles [switches] -to recipient \ # check with no compression cat >"$expected" <"$expected" <"$expected" <"$expected" <' # check PERSON environment variable cat >"$expected" <"$expected" <"$expected" <