X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/628b193daced4357675de5127ff8129cf6f81b0f..12af66e050dc7e464e36ef61a17c2dd359f4b8f0:/test/mhbuild/test-cte diff --git a/test/mhbuild/test-cte b/test/mhbuild/test-cte index 517fbc51..3ffc135e 100755 --- a/test/mhbuild/test-cte +++ b/test/mhbuild/test-cte @@ -47,7 +47,9 @@ EOF # # Force some text to be base64, to test out the encoder. Try at different -# line lengths to check out the padding on the +# line lengths to check out the padding on the routines to convert LF to +# CR LF. The current implementation reads in using a 3 byte buffer, so make +# sure we catch all of those cases. # cat > "$draft" < "$draft" < +cc: +Fcc: +outbox +------ +# "$expected" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" +Content-Transfer-Encoding: base64 + +VGhpcyBpcyBhIHRlc3Qgb2YgYSBtw6tzc8OkZ2Ugd2l0aCBhIHNow7hydCBsaW5lLg0K +EOF + +check "$draft" "$expected" + +cat > "$draft" < +cc: +Fcc: +outbox +------ +# "$expected" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" +Content-Transfer-Encoding: base64 + +VGhpcyBpcyBhIHRlc3Qgb2YgYSBtZXNzYWdlIHdpdGggYSBzaMO4cnQgbGluZS4NClRoaXMgaXMg +YSBzZWNvbmQgbGluZS4NCg== +EOF + +check "$draft" "$expected" + +cat > "$draft" < +cc: +Fcc: +outbox +------ +# "$expected" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" +Content-Transfer-Encoding: base64 + +VGhpcyBpcyBhIHRlc3Qgb2YgYSBtw6tzc2FnZSB3aXRoIGEgc2jDuHJ0IGxpbmUuDQpUaGlzIGlz +IGEgc2Vjb25kIGxpbmUuDQo= +EOF + +check "$draft" "$expected" + +cat > "$draft" < +cc: +Fcc: +outbox +------ +# "$expected" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" +Content-Transfer-Encoding: base64 + +VGhpcyBpcyBhIHRlc3Qgb2YgYSBtw6tzc8OkZ2Ugd2l0aCBhIHNow7hydCBsaW5lLg0KVGhpcyBp +cyBhIHNlY29uZCBsaW5lLg0K +EOF + +check "$draft" "$expected" + exit ${failed:-0}