Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / c9 / 7fdbd48e94bb669d6f13b7baa480338e0253b3
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 B8D11431FBC\r
6         for <notmuch@notmuchmail.org>; Sun, 26 Jan 2014 11:58:32 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 bOIso1nFcY-J for <notmuch@notmuchmail.org>;\r
16         Sun, 26 Jan 2014 11:58:26 -0800 (PST)\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 42D8E431FC2\r
19         for <notmuch@notmuchmail.org>; Sun, 26 Jan 2014 11:58:26 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id B71BA100051;\r
22         Sun, 26 Jan 2014 21:58:21 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH] test: add basic tests for notmuch new --quiet option\r
26 In-Reply-To: <1390762726-14075-1-git-send-email-jani@nikula.org>\r
27 References: <1390762726-14075-1-git-send-email-jani@nikula.org>\r
28 User-Agent: Notmuch/0.17+55~g4397960 (http://notmuchmail.org) Emacs/24.3.1\r
29         (x86_64-unknown-linux-gnu)\r
30 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
31         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
32         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
33 Date: Sun, 26 Jan 2014 21:58:21 +0200\r
34 Message-ID: <m21tzu5xcy.fsf@guru.guru-group.fi>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Sun, 26 Jan 2014 19:58:32 -0000\r
50 \r
51 On Sun, Jan 26 2014, Jani Nikula <jani@nikula.org> wrote:\r
52 \r
53 > This does not cover all the possible paths notmuch new could output\r
54 > stuff, but it's better than nothing.\r
55 > ---\r
56 \r
57 LGTM.\r
58 \r
59 Tomi\r
60 \r
61 \r
62 >  test/T050-new.sh | 15 +++++++++++++++\r
63 >  1 file changed, 15 insertions(+)\r
64 >\r
65 > diff --git a/test/T050-new.sh b/test/T050-new.sh\r
66 > index f27423d..b7668ff 100755\r
67 > --- a/test/T050-new.sh\r
68 > +++ b/test/T050-new.sh\r
69 > @@ -248,4 +248,19 @@ ln -s i_do_not_exist "${MAIL_DIR}"/broken_link\r
70 >  output=$(NOTMUCH_NEW 2>&1)\r
71 >  test_expect_equal "$output" "No new mail."\r
72 >  \r
73 > +test_begin_subtest "Quiet: No new mail."\r
74 > +output=$(NOTMUCH_NEW --quiet)\r
75 > +test_expect_equal "$output" ""\r
76 > +\r
77 > +test_begin_subtest "Quiet: new, removed and renamed messages."\r
78 > +# new\r
79 > +generate_message\r
80 > +# deleted\r
81 > +notmuch search --format=text0 --output=files --limit=1 '*' | xargs -0 rm\r
82 > +# moved\r
83 > +mkdir "${MAIL_DIR}"/moved_messages\r
84 > +notmuch search --format=text0 --output=files --offset=1 --limit=1 '*' | xargs -0 -I {} mv {} "${MAIL_DIR}"/moved_messages\r
85 > +output=$(NOTMUCH_NEW --quiet)\r
86 > +test_expect_equal "$output" ""\r
87 > +\r
88 >  test_done\r
89 > -- \r
90 > 1.8.5.2\r
91 >\r
92 > _______________________________________________\r
93 > notmuch mailing list\r
94 > notmuch@notmuchmail.org\r
95 > http://notmuchmail.org/mailman/listinfo/notmuch\r