X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT700-reindex.sh;h=3d7c930d6bdb0fe557b665c76385e5343478d541;hb=6eaadb43adae2cca2f8023830d498ef3164f7fe9;hp=051fbb3cef4812d4c488440d40d002c56bf4c583;hpb=178d62cf9c9959fe603c9ffef9fa90f65b67dcd5;p=notmuch diff --git a/test/T700-reindex.sh b/test/T700-reindex.sh index 051fbb3c..3d7c930d 100755 --- a/test/T700-reindex.sh +++ b/test/T700-reindex.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash test_description='reindexing messages' -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 add_email_corpus @@ -33,6 +33,14 @@ notmuch reindex '*' notmuch dump > OUTPUT test_expect_equal_file initial-dump OUTPUT +test_begin_subtest 'reindex preserves tags with special prefixes' +notmuch tag +attachment2 +encrypted2 +signed2 '*' +notmuch dump > EXPECTED +notmuch reindex '*' +notmuch dump > OUTPUT +notmuch tag -attachment2 -encrypted2 -signed2 '*' +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest 'reindex moves a message between threads' notmuch search --output=threads id:87iqd9rn3l.fsf@vertex.dottedmag > EXPECTED # re-parent @@ -66,7 +74,6 @@ notmuch restore < prop-dump notmuch reindex '*' notmuch dump | grep '^#=' | sort > OUTPUT test_expect_equal_file prop-dump OUTPUT -test_done add_email_corpus lkml