1 Return-Path: <tomi.ollila@iki.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id D42F7431FAF
\r
6 for <notmuch@notmuchmail.org>; Sun, 5 May 2013 12:27:50 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id tbzJN8UIVYem for <notmuch@notmuchmail.org>;
\r
16 Sun, 5 May 2013 12:27:47 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id EA511431FAE
\r
19 for <notmuch@notmuchmail.org>; Sun, 5 May 2013 12:27:46 -0700 (PDT)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id A98C2100033
\r
22 for <notmuch@notmuchmail.org>; Sun, 5 May 2013 22:27:44 +0300 (EEST)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: notmuch@notmuchmail.org
\r
25 Subject: Re: [PATCH 1/2] test: add basic test for notmuch setup
\r
27 <9971e27c7c3fe569765bbca0f21de128ad1e4fac.1367781422.git.jani@nikula.org>
\r
29 <9971e27c7c3fe569765bbca0f21de128ad1e4fac.1367781422.git.jani@nikula.org>
\r
30 User-Agent: Notmuch/0.15.2+75~gd7fa7c4 (http://notmuchmail.org) Emacs/24.3.1
\r
31 (x86_64-unknown-linux-gnu)
\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
33 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
34 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
35 Date: Sun, 05 May 2013 22:27:44 +0300
\r
36 Message-ID: <m24nehmdlb.fsf@guru.guru-group.fi>
\r
38 Content-Type: text/plain
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Sun, 05 May 2013 19:27:51 -0000
\r
53 On Sun, May 05 2013, Jani Nikula <jani@nikula.org> wrote:
\r
55 > And annotate with test_subtest_known_broken. Hooray.
\r
58 LGTM (both patches). Tests pass (both make test and hand-tested
\r
59 setup without having file ~/.notmuch-config).
\r
63 > test/notmuch-test | 1 +
\r
64 > test/setup | 28 ++++++++++++++++++++++++++++
\r
65 > 2 files changed, 29 insertions(+)
\r
66 > create mode 100755 test/setup
\r
68 > diff --git a/test/notmuch-test b/test/notmuch-test
\r
69 > index ca9c3dc..27a144e 100755
\r
70 > --- a/test/notmuch-test
\r
71 > +++ b/test/notmuch-test
\r
72 > @@ -20,6 +20,7 @@ TESTS="
\r
80 > diff --git a/test/setup b/test/setup
\r
81 > new file mode 100755
\r
82 > index 0000000..8cc5576
\r
86 > +#!/usr/bin/env bash
\r
88 > +test_description='"notmuch setup"'
\r
91 > +test_begin_subtest "Create a new config interactively"
\r
92 > +test_subtest_known_broken
\r
93 > +notmuch --config=new-notmuch-config > /dev/null <<EOF
\r
95 > +test.suite@example.com
\r
96 > +another.suite@example.com
\r
102 > +output=$(notmuch --config=new-notmuch-config config list)
\r
103 > +test_expect_equal "$output" "\
\r
104 > +database.path=/path/to/maildir
\r
105 > +user.name=Test Suite
\r
106 > +user.primary_email=test.suite@example.com
\r
107 > +user.other_email=another.suite@example.com;
\r
108 > +new.tags=foo;bar;
\r
110 > +search.exclude_tags=baz;
\r
111 > +maildir.synchronize_flags=true"
\r
117 > _______________________________________________
\r
118 > notmuch mailing list
\r
119 > notmuch@notmuchmail.org
\r
120 > http://notmuchmail.org/mailman/listinfo/notmuch
\r