From: Jani Nikula <jani@nikula.org>
To: notmuch@notmuchmail.org
Subject: [PATCH 1/3] test: test one character long directory names at top level
Date: Sun, 10 Apr 2016 22:43:21 +0300 [thread overview]
Message-ID: <1460317403-13714-1-git-send-email-jani@nikula.org> (raw)
Yes, it's broken. Reported by h01ger on IRC.
---
test/T050-new.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/test/T050-new.sh b/test/T050-new.sh
index 93a6fa94ae7c..174715aa2781 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 <<EOF
From test_suite@notmuchmail.org Fri Jan 5 15:43:57 2001
--
2.1.4
next reply other threads:[~2016-04-10 19:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-10 19:43 Jani Nikula [this message]
2016-04-10 19:43 ` [PATCH 2/3] lib: fix handling of one character long directory names at top level Jani Nikula
2016-04-11 6:44 ` Tomi Ollila
2016-04-10 19:43 ` [PATCH 3/3] lib: clean up _notmuch_database_split_path Jani Nikula
2016-04-12 23:51 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1460317403-13714-1-git-send-email-jani@nikula.org \
--to=jani@nikula.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).