blob 8318f9af4f05fc2bbc30d270aa11a17a266e5d5a 852 bytes (raw)
name: test/T730-body.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
23
24
25
26
27
28
| | #!/usr/bin/env bash
test_description='search body'
. $(dirname "$0")/test-lib.sh || exit 1
add_message "[body]=thebody-1" "[subject]=subject-1"
test_begin_subtest 'search with body: prefix'
notmuch search body:thebody | notmuch_search_sanitize > OUTPUT
cat <<EOF > EXPECTED
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; subject-1 (inbox unread)
EOF
test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest 'search without body: prefix'
notmuch search thebody | notmuch_search_sanitize > OUTPUT
cat <<EOF > EXPECTED
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; subject-1 (inbox unread)
EOF
test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest 'search with body: prefix for term only in subject'
notmuch search body:subject | notmuch_search_sanitize > OUTPUT
cat <<EOF > EXPECTED
EOF
test_expect_equal_file EXPECTED OUTPUT
test_done
|
debug log:
solving 8318f9af ...
found 8318f9af in https://yhetil.org/notmuch/20190218115622.31466-1-david@tethera.net/
applying [1/1] https://yhetil.org/notmuch/20190218115622.31466-1-david@tethera.net/
diff --git a/test/T730-body.sh b/test/T730-body.sh
new file mode 100755
index 00000000..8318f9af
Checking patch test/T730-body.sh...
Applied patch test/T730-body.sh cleanly.
index at:
100755 8318f9af4f05fc2bbc30d270aa11a17a266e5d5a test/T730-body.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).