aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/emacs
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-10-22 12:10:15 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-10-22 12:10:15 -0700
commit1375d71ff41de7c189f9c3ac4f72a8a617d4a5a7 (patch)
treeb799f4406686456e583a434216d05fda3374ef10 /test/emacs
parent209e756cd4571964821221d5d4d8447b0aadd43d (diff)
test: Add the most rudimentary testing of the emacs interface.
So far, this is doing nothing more than adding a corpus of email and ensuring that the `notmuch-hello' function produces the desired output.
Diffstat (limited to 'test/emacs')
-rwxr-xr-xtest/emacs25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/emacs b/test/emacs
new file mode 100755
index 00000000..f9db5d11
--- /dev/null
+++ b/test/emacs
@@ -0,0 +1,25 @@
+#!/bin/bash
+test_description="emacs interface"
+. test-lib.sh
+
+add_email_corpus
+
+test_begin_subtest "Test emacs-hello interface"
+output=$(test_emacs '(notmuch-hello) (message (buffer-string))' 2>&1)
+test_expect_equal "$output" " Welcome to notmuch. You have 50 messages (that's not much mail).
+
+Saved searches: [edit]
+
+ 50 inbox 50 unread
+
+Search:
+
+[Show all tags]
+
+ Type a search query and hit RET to view matching threads.
+ Edit saved searches with the \`edit' button.
+ Hit RET or click on a saved search or tag name to view matching threads.
+ \`=' refreshes this screen. \`s' jumps to the search box. \`q' to quit."
+
+
+test_done