X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT460-emacs-tree.sh;h=946583d9f397f6602363804735fb2fa0779f0799;hb=eb226437e1c0da6da86c04c78cbdd2020b982ad6;hp=dc5978419be770370bb9f9fba228429d3625ad2f;hpb=a863de1e43ee34f6f5794a2759fdceb287e851aa;p=notmuch diff --git a/test/T460-emacs-tree.sh b/test/T460-emacs-tree.sh index dc597841..946583d9 100755 --- a/test/T460-emacs-tree.sh +++ b/test/T460-emacs-tree.sh @@ -2,9 +2,11 @@ test_description="emacs tree view interface" . $(dirname "$0")/test-lib.sh || exit 1 +. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1 -EXPECTED=$TEST_DIRECTORY/tree.expected-output +EXPECTED=$NOTMUCH_SRCDIR/test/emacs-tree.expected-output +test_require_emacs add_email_corpus test_begin_subtest "Basic notmuch-tree view in emacs" @@ -177,4 +179,19 @@ output=$(test_emacs '(notmuch-tree "tag:inbox") (notmuch-show-stash-message-id)') test_expect_equal "$output" "\"Stashed: id:1258493565-13508-1-git-send-email-keithp@keithp.com\"" +test_begin_subtest "Functions in tree-result-format" +test_emacs ' +(let + ((notmuch-tree-result-format + (quote (("date" . "%12s ") + ("authors" . "%-20s") + ((("tree" . "%s") + ("subject" . "%s")) . " %-54s ") + (notmuch-test-result-flags . "(%s)"))))) + (notmuch-tree "tag:inbox") + (notmuch-test-wait) + (test-output)) +' +test_expect_equal_file $EXPECTED/result-format-function OUTPUT + test_done