unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 48326c814ee6147e7e055da46fc2f2ba20375085 1468 bytes (raw)
name: test/emacs-search-operate-all 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
#!/usr/bin/env bash

test_description="emacs interface"
. test-lib.sh

EXPECTED=$TEST_DIRECTORY/emacs.expected-output

add_email_corpus

test_begin_subtest "Add/remove tags to/from all matching threads."
test_emacs '(notmuch-search "tag:inbox AND tags")
	    (notmuch-test-wait)
	    (notmuch-search-operate-all "+matching -inbox")
	    (notmuch-search "tag:matching AND NOT tag:inbox")
	    (notmuch-test-wait)
	    (test-output)'
cat <<EOF >EXPECTED
  2009-11-18 [2/2]   Ingmar Vanhassel, Carl Worth  [notmuch] [PATCH] Typsos (matching unread)
  2009-11-18 [3/3]   Adrian Perez de Castro, Keith Packard, Carl Worth  [notmuch] Introducing myself (matching signed unread)
  2009-11-18 [3/3]   Israel Herraiz, Keith Packard, Carl Worth   [notmuch] New to the list (matching unread)
  2009-11-18 [2/2]   Keith Packard, Carl Worth    [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (matching unread)
  2009-11-18 [2/2]   Keith Packard, Alexander Botero-Lowry    [notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (matching unread)
  2009-11-18 [1/1]   Jan Janak            [notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (matching unread)
  2009-11-18 [1/1]   Stewart Smith        [notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (matching unread)
End of search results.
EOF
test_expect_equal_file OUTPUT EXPECTED

test_done

debug log:

solving 48326c8 ...
found 48326c8 in https://yhetil.org/notmuch/1310313335-4159-6-git-send-email-pieter@praet.org/ ||
	https://yhetil.org/notmuch/1310416993-31031-1-git-send-email-pieter@praet.org/
found 2bd50ba in https://yhetil.org/notmuch/1310313335-4159-5-git-send-email-pieter@praet.org/

applying [1/2] https://yhetil.org/notmuch/1310313335-4159-5-git-send-email-pieter@praet.org/
diff --git a/test/emacs-search-operate-all b/test/emacs-search-operate-all
new file mode 100755
index 0000000..2bd50ba


applying [2/2] https://yhetil.org/notmuch/1310313335-4159-6-git-send-email-pieter@praet.org/
diff --git a/test/emacs-search-operate-all b/test/emacs-search-operate-all
index 2bd50ba..48326c8 100755

Checking patch test/emacs-search-operate-all...
Applied patch test/emacs-search-operate-all cleanly.
Checking patch test/emacs-search-operate-all...
Applied patch test/emacs-search-operate-all cleanly.

skipping https://yhetil.org/notmuch/1310416993-31031-1-git-send-email-pieter@praet.org/ for 48326c8
index at:
100755 48326c814ee6147e7e055da46fc2f2ba20375085	test/emacs-search-operate-all

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).