X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/643c6553f171fa5b04a017da16f9283467497355..e6d04314ddbe9532041db2c18a40e9dd1a9ae317:/test/mhbuild/test-cte diff --git a/test/mhbuild/test-cte b/test/mhbuild/test-cte index 1ccfe199..bbebb028 100755 --- a/test/mhbuild/test-cte +++ b/test/mhbuild/test-cte @@ -16,9 +16,10 @@ setup_test set -e -LC_ALL=en_US.UTF-8; export LC_ALL +require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8 draft="$MH_TEST_DIR/$$.draft" +backup="${MH_TEST_DIR}/`mhparam sbackup`$$.draft.orig" expected="$MH_TEST_DIR/$$.expected" # @@ -47,6 +48,8 @@ Content-Transfer-Encoding: quoted-printable This is a test of a message with a sh=C3=B8rt line. EOF +check "$draft" "$expected" + # # Force some text to be base64, to test out the encoder. Try at different # line lengths to check out the padding on the routines to convert LF to @@ -356,7 +359,7 @@ To: Mr Test cc: Fcc: +outbox ------ -This is the test of a lønger line than the ususal limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? +This is the test of a lønger line than the usual limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? EOF run_prog mhbuild -maxunencoded 200 "$draft" @@ -369,9 +372,11 @@ MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit -This is the test of a lønger line than the ususal limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? +This is the test of a lønger line than the usual limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? EOF check "$draft" "$expected" +[ ${failed:=0} -eq 0 ] && rm -f ${backup} + exit ${failed:-0}