X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT570-revision-tracking.sh;h=4fff6896dd203b8dbb64760ad31bb3b633c90859;hp=e0a57030f404249308bb7a1b17a33b49f10f91c8;hb=5a3b42fb8c556397841b86c5fda1c4554dab253a;hpb=98ee460eaa98f1428aecf03dd39fcf314e6f62c0 diff --git a/test/T570-revision-tracking.sh b/test/T570-revision-tracking.sh index e0a57030..4fff6896 100755 --- a/test/T570-revision-tracking.sh +++ b/test/T570-revision-tracking.sh @@ -34,4 +34,16 @@ UUID 53 EOF test_expect_equal_file EXPECTED CLEAN +grep '^[0-9a-f]' OUTPUT > INITIAL_OUTPUT + +test_begin_subtest "output of count matches test code" +notmuch count --lastmod '*' | cut -f2-3 > OUTPUT +test_expect_equal_file INITIAL_OUTPUT OUTPUT + +test_begin_subtest "modification count increases" +before=$(notmuch count --lastmod '*' | cut -f3) +notmuch tag +a-random-tag-8743632 '*' +after=$(notmuch count --lastmod '*' | cut -f3) +result=$(($before < $after)) +test_expect_equal 1 ${result} test_done