X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/63764e68d4fce20854dc2ba18a7244cb6a6769ca..0c01170320f36b1c900ce63d6f40c5458521ba27:/test/mhfixmsg/test-mhfixmsg diff --git a/test/mhfixmsg/test-mhfixmsg b/test/mhfixmsg/test-mhfixmsg index 14b9a58a..709a4062 100755 --- a/test/mhfixmsg/test-mhfixmsg +++ b/test/mhfixmsg/test-mhfixmsg @@ -45,6 +45,8 @@ Usage: mhfixmsg [+folder] [msgs] [switches] -[no]fixcte -file file -outfile file + -rmmproc program + -normmproc -[no]verbose -version -help @@ -857,6 +859,22 @@ check "${MH_TEST_DIR}/Mail/inbox/14.backup" \ "${MH_TEST_DIR}/Mail/inbox/14.original" +# check -normmproc +cp "${MH_TEST_DIR}/Mail/inbox/18" "${MH_TEST_DIR}/Mail/inbox/19" + +run_test 'mhfixmsg 18 -normmproc' +check "${MH_TEST_DIR}/Mail/inbox/19" \ + "${MH_TEST_DIR}/Mail/inbox/,18" 'keep first' + + +# check -rmmproc +run_test 'mhfixmsg 19 -rmmproc true' +if test -f '${MH_TEST_DIR}/Mail/inbox/19.backup'; then + echo check of mhfixmsg -rmmproc FAILED, should not have created backup file + failed=`expr ${failed:-0} + 1` +fi + + # make sure there are no tmp files left over find "$MH_TEST_DIR/Mail" \( -name 'mhfix*' -o -name ',mhfix*' \) -print \ >"$actual"