From: Jani Nikula <jani@nikula.org>
To: notmuch@notmuchmail.org
Cc: Tomi Ollila <tomi.ollila@iki.fi>
Subject: [PATCH 1/2] test: add basic test for notmuch setup
Date: Sun, 5 May 2013 22:18:19 +0300 [thread overview]
Message-ID: <9971e27c7c3fe569765bbca0f21de128ad1e4fac.1367781422.git.jani@nikula.org> (raw)
And annotate with test_subtest_known_broken. Hooray.
---
test/notmuch-test | 1 +
test/setup | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100755 test/setup
diff --git a/test/notmuch-test b/test/notmuch-test
index ca9c3dc..27a144e 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -20,6 +20,7 @@ TESTS="
basic
help-test
config
+ setup
new
count
search
diff --git a/test/setup b/test/setup
new file mode 100755
index 0000000..8cc5576
--- /dev/null
+++ b/test/setup
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+test_description='"notmuch setup"'
+. ./test-lib.sh
+
+test_begin_subtest "Create a new config interactively"
+test_subtest_known_broken
+notmuch --config=new-notmuch-config > /dev/null <<EOF
+Test Suite
+test.suite@example.com
+another.suite@example.com
+
+/path/to/maildir
+foo bar
+baz
+EOF
+output=$(notmuch --config=new-notmuch-config config list)
+test_expect_equal "$output" "\
+database.path=/path/to/maildir
+user.name=Test Suite
+user.primary_email=test.suite@example.com
+user.other_email=another.suite@example.com;
+new.tags=foo;bar;
+new.ignore=
+search.exclude_tags=baz;
+maildir.synchronize_flags=true"
+
+test_done
--
1.7.10.4
next reply other threads:[~2013-05-05 19:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-05 19:18 Jani Nikula [this message]
2013-05-05 19:18 ` [PATCH 2/2] cli: config: fix config file save when the file does not exist Jani Nikula
2013-05-05 19:27 ` [PATCH 1/2] test: add basic test for notmuch setup Tomi Ollila
2013-05-11 21:47 ` Mark Walters
2013-05-12 10:58 ` 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=9971e27c7c3fe569765bbca0f21de128ad1e4fac.1367781422.git.jani@nikula.org \
--to=jani@nikula.org \
--cc=notmuch@notmuchmail.org \
--cc=tomi.ollila@iki.fi \
/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).