X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT050-new.sh;h=b7668ff0c4bcd9b4897c31d95f9fa84a925650e8;hb=3e1d7f6476f94d9912e395872317606fb702f210;hp=f27423dac30b13f7fafc317c1559367904c764f2;hpb=1c2f2c960c0773cea77c256ef319a3fe08f7eecb;p=notmuch diff --git a/test/T050-new.sh b/test/T050-new.sh index f27423da..b7668ff0 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -248,4 +248,19 @@ ln -s i_do_not_exist "${MAIL_DIR}"/broken_link output=$(NOTMUCH_NEW 2>&1) test_expect_equal "$output" "No new mail." +test_begin_subtest "Quiet: No new mail." +output=$(NOTMUCH_NEW --quiet) +test_expect_equal "$output" "" + +test_begin_subtest "Quiet: new, removed and renamed messages." +# new +generate_message +# deleted +notmuch search --format=text0 --output=files --limit=1 '*' | xargs -0 rm +# moved +mkdir "${MAIL_DIR}"/moved_messages +notmuch search --format=text0 --output=files --offset=1 --limit=1 '*' | xargs -0 -I {} mv {} "${MAIL_DIR}"/moved_messages +output=$(NOTMUCH_NEW --quiet) +test_expect_equal "$output" "" + test_done