]> git.notmuchmail.org Git - notmuch/commitdiff
contrib: pick: test: stash message id
authorMark Walters <markwalters1009@gmail.com>
Tue, 3 Sep 2013 14:04:59 +0000 (15:04 +0100)
committerDavid Bremner <bremner@debian.org>
Wed, 4 Sep 2013 09:33:31 +0000 (06:33 -0300)
This is important to test as lots of subsequent tests will fail if this fails.

contrib/notmuch-pick/test/emacs-pick

index 91edcacb898e9eeb7135d2d7b2456ba4c80b7c42..6834998500a1ab1dfd2f375c63f0afbab94149a4 100755 (executable)
@@ -159,4 +159,12 @@ test_emacs '(notmuch-hello)
 cp OUTPUT /tmp/mjwout
 test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-show-window
 
+test_begin_subtest "Stash id"
+output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")
+                    (require (quote notmuch-pick))
+                    (notmuch-pick "id:1258498485-sup-142@elly")
+                    (notmuch-test-wait)
+                    (notmuch-show-stash-message-id)')
+test_expect_equal "$output" "\"Stashed: id:1258498485-sup-142@elly\""
+
 test_done