X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/96b3cda1033c621e9fe3f6b91b5afe78c4dca5f7..59587acfccea34b70fb7110b0cd5a188a9278f22:/test/mhfixmsg/test-mhfixmsg?ds=inline diff --git a/test/mhfixmsg/test-mhfixmsg b/test/mhfixmsg/test-mhfixmsg index aca896eb..a7932352 100755 --- a/test/mhfixmsg/test-mhfixmsg +++ b/test/mhfixmsg/test-mhfixmsg @@ -12,7 +12,9 @@ if test -z "${MH_OBJ_DIR}"; then MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR fi -. "${srcdir}/test/post/test-post-common.sh" +. "${MH_OBJ_DIR}/test/common.sh" + +setup_test #### Make sure that html-to-text conversion is what we expect. require_locale en_US.utf-8 en_US.utf8 @@ -52,6 +54,7 @@ Usage: mhfixmsg [+folder] [msgs] [switches] -[no]replacetextplain -[no]fixboundary -[no]fixcte + -fixtype mimetype -file file -outfile file -rmmproc program @@ -67,7 +70,6 @@ check "$expected" "$actual" # check -version -# Verified same behavior as compiled mhfixmsg. case `mhfixmsg -version` in mhfixmsg\ --*) ;; *) printf '%s: mhfixmsg -version generated unexpected output\n' "$0" >&2 @@ -1109,6 +1111,41 @@ if test -f '${MH_TEST_DIR}/Mail/inbox/20.backup'; then fi +# check -fixtype +cat >"$expected" <`mhpath new` <"$actual"