From: Paul Fox Date: Tue, 6 May 2014 02:41:43 +0000 (-0400) Subject: modify tests for the new mhshow mime part marker format X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/fb0773a44c676a24e722c08c2a259e688ecac606?hp=19f21d4d5c17206694b60056ec95bd2c26de91e4 modify tests for the new mhshow mime part marker format also added a couple of Content-Description headers to better test the marker format. --- diff --git a/test/bad-input/test-header b/test/bad-input/test-header index ea5385fa..0666cdb9 100755 --- a/test/bad-input/test-header +++ b/test/bad-input/test-header @@ -65,7 +65,7 @@ From: foo@example.edu Subject: test -part text/plain 70 +[ part - text/plain - 70B ] This is a multi-part message in MIME format. diff --git a/test/mhshow/test-charset b/test/mhshow/test-charset index efcab90c..960af718 100755 --- a/test/mhshow/test-charset +++ b/test/mhshow/test-charset @@ -18,8 +18,6 @@ setup_test LC_ALL=en_US.UTF-8; export LC_ALL -test "$ICONV_ENABLED" -eq 0 && text_size=10 || text_size=11 - expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/$$.actual @@ -35,6 +33,7 @@ Subject: test MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable +Content-Description: bogus quoted-printable data Date: Sun, 18 Dec 2005 00:52:39 +0100 4 =F7 2 =3D 2 @@ -47,8 +46,9 @@ From: foo@example.edu Subject: test MIME-Version: 1.0 +Content-Description: bogus quoted-printable data -part text/plain $text_size +[ part - text/plain - bogus quoted-printable data 11B ] This is a test EOF diff --git a/test/mhshow/test-cte-binary b/test/mhshow/test-cte-binary index ce9045b5..fdf1ca78 100755 --- a/test/mhshow/test-cte-binary +++ b/test/mhshow/test-cte-binary @@ -43,7 +43,7 @@ Subject: test MIME-Version: 1.0 Content-Disposition: inline -part text/plain 34 +[ part - text/plain - 34B ] This is a test; this is the body. EOF run_prog mhshow $msgnum > $actual 2>&1 diff --git a/test/mhshow/test-msg-buffer-boundaries b/test/mhshow/test-msg-buffer-boundaries index 684a5389..b003053a 100755 --- a/test/mhshow/test-msg-buffer-boundaries +++ b/test/mhshow/test-msg-buffer-boundaries @@ -153,7 +153,7 @@ EOF # Write the expected output. cat >"$expected" <"$expected" <"$expected" < $expected <