aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2018-07-09 07:30:31 -0300
committerDavid Bremner <david@tethera.net>2018-08-29 06:37:48 -0300
commitdfda1745bf6efa993de8c842511e1a52c0694fd2 (patch)
treec9927a2eeff1ee24e496b9b5dc1e6e73f365b321
parent0f08bf71666c11c5d4ff675f4013cd741d4ed18e (diff)
test/tag: add test for updating during batch tag operations
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.
-rwxr-xr-xtest/T150-tagging.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/T150-tagging.sh b/test/T150-tagging.sh
index 6140c676..208b4b98 100755
--- a/test/T150-tagging.sh
+++ b/test/T150-tagging.sh
@@ -130,6 +130,19 @@ EOF
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