blob 0b75334a6927e31b76518c8b5e249f656427057a 704 bytes (raw)
name: test/T081-sexpr-search.sh # 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
| | #!/usr/bin/env bash
test_description='"notmuch search" in several variations'
. $(dirname "$0")/test-lib.sh || exit 1
add_email_corpus
for query in '()' '(not)' '(and)' '(or ())' '(or (not))' '(or (and))' \
'(or (and) (or) (not (and)))'; do
test_begin_subtest "all messages: $query"
notmuch search '*' > EXPECTED
notmuch search --query-syntax=sexp "$query" > OUTPUT
test_expect_equal_file EXPECTED OUTPUT
done
for query in '(or)' '(not ())' '(not (not))' '(not (and))' \
'(not (or (and) (or) (not (and))))'; do
test_begin_subtest "no messages: $query"
notmuch search --query-syntax=sexp "$query" > OUTPUT
test_expect_equal_file /dev/null OUTPUT
done
test_done
|
debug log:
solving 0b75334a ...
found 0b75334a in https://yhetil.org/notmuch/20210714000239.804384-6-david@tethera.net/
applying [1/1] https://yhetil.org/notmuch/20210714000239.804384-6-david@tethera.net/
diff --git a/test/T081-sexpr-search.sh b/test/T081-sexpr-search.sh
new file mode 100755
index 00000000..0b75334a
Checking patch test/T081-sexpr-search.sh...
Applied patch test/T081-sexpr-search.sh cleanly.
index at:
100755 0b75334a6927e31b76518c8b5e249f656427057a test/T081-sexpr-search.sh
(*) 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).