X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT670-duplicate-mid.sh;h=bf8cc3a816b65e8cc858411979fcd22340ac2e2d;hb=4ac23c5978ff963c18a012b6b230b26f9ef98c43;hp=21a9689ab870a222bd80e6c54ba4fa4a8c62e1b3;hpb=43668950626f347f05aad7d49cd9ea4383030443;p=notmuch diff --git a/test/T670-duplicate-mid.sh b/test/T670-duplicate-mid.sh index 21a9689a..bf8cc3a8 100755 --- a/test/T670-duplicate-mid.sh +++ b/test/T670-duplicate-mid.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash test_description="duplicate message ids" -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 add_message '[id]="duplicate"' '[subject]="message 1" [filename]=copy1' add_message '[id]="duplicate"' '[subject]="message 2" [filename]=copy2' @@ -47,6 +47,16 @@ EOF notmuch search --output=files subject:'"message 2"' | notmuch_dir_sanitize > OUTPUT test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest 'Regexp search for second subject' +test_subtest_known_broken +cat <EXPECTED +MAIL_DIR/copy0 +MAIL_DIR/copy1 +MAIL_DIR/copy2 +EOF +notmuch search --output=files 'subject:"/message 2/"' | notmuch_dir_sanitize > OUTPUT +test_expect_equal_file EXPECTED OUTPUT + add_message '[id]="duplicate"' '[body]="sekrit" [filename]=copy3' test_begin_subtest 'search for body in duplicate file' cat <EXPECTED