aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/emacs
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-11-06 14:33:30 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-11-06 14:33:30 -0700
commitf8007ecb290d9ce03e21ad75a7e5234404471abf (patch)
tree3b42b104c279f688cd65495595a672fad3bcded4 /test/emacs
parent81d3bd3670f570c9aeb7e1f3b317b86194ee4426 (diff)
test: Add test for viewing raw message within emacs.
This provides further coverage for the recently added (and recently modified) use of "notmuch show --format=raw" within emacs.
Diffstat (limited to 'test/emacs')
-rwxr-xr-xtest/emacs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/emacs b/test/emacs
index 096fa017..fb61e9ab 100755
--- a/test/emacs
+++ b/test/emacs
@@ -118,4 +118,10 @@ output=$(cat attachment)
expected=$(cat $EXPECTED/attachment)
test_expect_equal "$output" "$expected"
+test_begin_subtest "View raw message within emacs"
+expected=$(cat $EXPECTED/raw-message-cf0c4d-52ad0a)
+first_line=$(echo "$expected" | head -n1)
+output=$(test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-view-raw-message) (message (buffer-string))' 2>&1 | sed -ne "/$first_line/,\$ p")
+test_expect_equal "$output" "$expected"
+
test_done