X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT455-emacs-charsets.sh;h=cb1297caa5dc3f1421c57de1bbeddea41dd3e194;hp=7624fa4d10a645b8b8c5d636e76370b4a7904030;hb=cd8006886b1c80ff556a96f1e84e3d3914067a54;hpb=02a2eeb427d6b424029f6e5e5ddad4c6ec987741 diff --git a/test/T455-emacs-charsets.sh b/test/T455-emacs-charsets.sh index 7624fa4d..cb1297ca 100755 --- a/test/T455-emacs-charsets.sh +++ b/test/T455-emacs-charsets.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash test_description="emacs notmuch-show charset handling" -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 UTF8_YEN=$'\xef\xbf\xa5' @@ -48,7 +48,7 @@ awk 'show {print} /^$/ {show=1}' < OUTPUT.raw > OUTPUT cat <EXPECTED Yen: $UTF8_YEN EOF -test_expect_equal_file OUTPUT EXPECTED +test_expect_equal_file EXPECTED OUTPUT test_begin_subtest "8bit text parts are decoded when rendering" test_emacs '(notmuch-show "id:test-plain-8bit@example.com") @@ -57,7 +57,7 @@ awk 'show {print} /^$/ {show=1}' < OUTPUT.raw > OUTPUT cat <EXPECTED Yen: $UTF8_YEN EOF -test_expect_equal_file OUTPUT EXPECTED +test_expect_equal_file EXPECTED OUTPUT test_begin_subtest "HTML parts are decoded when rendering" test_emacs '(notmuch-show "id:test-html@example.com") @@ -67,7 +67,7 @@ cat <EXPECTED [ text/html ] Yen: $UTF8_YEN EOF -test_expect_equal_file OUTPUT EXPECTED +test_expect_equal_file EXPECTED OUTPUT # Test saving @@ -125,7 +125,7 @@ awk 'show {print} /^$/ {show=1}' < OUTPUT.raw > OUTPUT cat <EXPECTED Yen: =A2=44 EOF -test_expect_equal_file OUTPUT EXPECTED +test_expect_equal_file EXPECTED OUTPUT test_begin_subtest "8bit text message are not decoded when viewing" test_emacs '(notmuch-show "id:test-plain-8bit@example.com") @@ -135,6 +135,6 @@ awk 'show {print} /^$/ {show=1}' < OUTPUT.raw > OUTPUT cat <EXPECTED Yen: $BIG5_YEN EOF -test_expect_equal_file OUTPUT EXPECTED +test_expect_equal_file EXPECTED OUTPUT test_done