X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT050-new.sh;h=a99fb5b746067eed4b32ccebe7325029fe73b702;hp=f38e626354f2b573e448c3c5af1c4ff5d4a751a2;hb=0f6b399d5b2f925a75a69d7cda38dda5c67db7a1;hpb=e311aad182326a1dcb0f8512e10b0e0f0faa9e2c diff --git a/test/T050-new.sh b/test/T050-new.sh index f38e6263..a99fb5b7 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -169,6 +169,20 @@ output=$(NOTMUCH_NEW --debug) test_expect_equal "$output" "(D) add_files, pass 3: queuing leftover directory ${MAIL_DIR}/two for deletion from database No new mail. Removed 3 messages." +test_begin_subtest "One character directory at top level" +test_subtest_known_broken + +generate_message [dir]=A +generate_message [dir]=A/B +generate_message [dir]=A/B/C + +output=$(NOTMUCH_NEW --debug) +test_expect_equal "$output" "Added 3 new messages to the database." + +# clean up after the broken test to not mess up other tests +rm -rf "${MAIL_DIR}"/A +NOTMUCH_NEW 2>&1 > /dev/null + test_begin_subtest "Support single-message mbox" cat > "${MAIL_DIR}"/mbox_file1 <