]> git.notmuchmail.org Git - notmuch/commitdiff
test/tag: add test for updating during batch tag operations
authorDavid Bremner <david@tethera.net>
Mon, 9 Jul 2018 10:30:31 +0000 (07:30 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 29 Aug 2018 09:37:48 +0000 (06:37 -0300)
This clarifies that the breakage seen with Xapian 1.4.6 does not have
to do with "funny" tags.

This test is "known broken", but only with xapian 1.4.6, and there's
curently no convenient way to mark that.

test/T150-tagging.sh

index 6140c67686305f8959bc7398ad819212cfb38ee4..208b4b9806405e5c4e90b8d7f1af56afe6a4e412 100755 (executable)
@@ -130,6 +130,19 @@ EOF
 test_expect_equal_file batch_removeall.expected OUTPUT
 rm batch_removeall.expected
 
 test_expect_equal_file batch_removeall.expected OUTPUT
 rm batch_removeall.expected
 
+test_begin_subtest "--batch, dependence on previous line"
+notmuch dump --format=batch-tag > backup.tags
+notmuch tag --batch<<EOF
++trigger -- One
++second_tag -- tag:trigger
+EOF
+NOTMUCH_DUMP_TAGS tag:second_tag > OUTPUT
+notmuch restore --format=batch-tag < backup.tags
+cat <<EOF >EXPECTED
++inbox +second_tag +tag5 +trigger +unread -- id:msg-001@notmuch-test-suite
+EOF
+test_expect_equal_file EXPECTED OUTPUT
+
 test_begin_subtest "--batch, blank lines and comments"
 notmuch dump | sort > EXPECTED
 notmuch tag --batch <<EOF
 test_begin_subtest "--batch, blank lines and comments"
 notmuch dump | sort > EXPECTED
 notmuch tag --batch <<EOF