diff options
| author | David Bremner <david@tethera.net> | 2020-08-08 11:16:50 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2020-12-23 09:23:42 -0400 |
| commit | 76871fcf5eb97b27030b0517afdac1e2cceb5b2a (patch) | |
| tree | 3b742154f77a7283eaa3c50055f28e17e520a5ca /test/T140-excludes.sh | |
| parent | 43ba5ed7eca6e9f6433b8c2c2a9d834d4101b92a (diff) | |
test: add regression test for searching with alternate config
Make sure upcoming changes to config handling do not break command
line specification.
Diffstat (limited to 'test/T140-excludes.sh')
| -rwxr-xr-x | test/T140-excludes.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/T140-excludes.sh b/test/T140-excludes.sh index 0cf69975..cef07095 100755 --- a/test/T140-excludes.sh +++ b/test/T140-excludes.sh @@ -39,6 +39,16 @@ deleted_id=$gen_msg_id output=$(notmuch search subject:deleted | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Not deleted (inbox unread)" +test_begin_subtest "Search, exclude \"deleted\" messages; alternate config file" +cp ${NOTMUCH_CONFIG} alt-config +notmuch config set search.exclude_tags +notmuch --config=alt-config search subject:deleted | notmuch_search_sanitize > OUTPUT +cp alt-config ${NOTMUCH_CONFIG} +cat <<EOF > EXPECTED +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Not deleted (inbox unread) +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "Search, exclude \"deleted\" messages from message search" output=$(notmuch search --output=messages subject:deleted | notmuch_search_sanitize) test_expect_equal "$output" "id:$not_deleted_id" |
