1 Return-Path: <jani@nikula.org>
\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 3F38E421174
\r
6 for <notmuch@notmuchmail.org>; Sat, 31 Mar 2012 15:18:13 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
13 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id kFBv1WPrGnyw for <notmuch@notmuchmail.org>;
\r
17 Sat, 31 Mar 2012 15:18:12 -0700 (PDT)
\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com
\r
19 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 1DCE5431FAF
\r
22 for <notmuch@notmuchmail.org>; Sat, 31 Mar 2012 15:18:00 -0700 (PDT)
\r
23 Received: by mail-bk0-f53.google.com with SMTP id j4so1547751bkw.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 31 Mar 2012 15:18:00 -0700 (PDT)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=google.com; s=20120113;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references
\r
28 :in-reply-to:references:x-gm-message-state;
\r
29 bh=GtjyHKr/UxYHD7sZ/r+atYDXmNHNVfTyGOiKe4jX80M=;
\r
30 b=FimxayhTJ2NCrky/eZnub31zyH5TGUgV9Cd6f0wIZLLJCboWFgTmbY2yN6cBjtXLxM
\r
31 oXOdc02HfSyrCwQUKzNjZypYHVMcAF20kGS/elcdfBdnJbIKyIE+KS+TpMPOoYbC2c+E
\r
32 6euVHqbddFY6BsqyG6QoMIfGGCkU6PoyWI38ZhWBtHE1b5FXx0/lr0PJTwRUqhrl522s
\r
33 ObSyZoeyypWDIhGS/Oe2P85MsrJqxgw5Kxl9tbaWT43lgs3EOzmzRMwbGBzRr3VGZ0PC
\r
34 d1E0QS7tl34ug7FF2MQhOleNaQN61jN6AeVncEV8mZRAms0xEsQTjFfPNzFR6L/sSlUD
\r
36 Received: by 10.205.132.73 with SMTP id ht9mr1430875bkc.46.1333232280673;
\r
37 Sat, 31 Mar 2012 15:18:00 -0700 (PDT)
\r
38 Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi.
\r
40 by mx.google.com with ESMTPS id z17sm28529565bkw.12.2012.03.31.15.17.58
\r
41 (version=SSLv3 cipher=OTHER); Sat, 31 Mar 2012 15:17:59 -0700 (PDT)
\r
42 From: Jani Nikula <jani@nikula.org>
\r
43 To: notmuch@notmuchmail.org
\r
44 Subject: [PATCH 7/8] test: add test for notmuch tag --stdin option
\r
45 Date: Sun, 1 Apr 2012 01:17:27 +0300
\r
47 <ddf442a6462536a54dfd4491fa7bdb89dac20ce0.1333231401.git.jani@nikula.org>
\r
48 X-Mailer: git-send-email 1.7.5.4
\r
49 In-Reply-To: <cover.1333231401.git.jani@nikula.org>
\r
50 References: <cover.1333231401.git.jani@nikula.org>
\r
51 In-Reply-To: <cover.1333231401.git.jani@nikula.org>
\r
52 References: <cover.1333231401.git.jani@nikula.org>
\r
54 ALoCoQmtru8hkIjcnN5KL6ZTMVqQ2K5csGB0shIWZuxBCqLQgWfPJlxxpsOx7vCtoLEYyIjAD3wL
\r
55 X-BeenThere: notmuch@notmuchmail.org
\r
56 X-Mailman-Version: 2.1.13
\r
58 List-Id: "Use and development of the notmuch mail system."
\r
59 <notmuch.notmuchmail.org>
\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
63 List-Post: <mailto:notmuch@notmuchmail.org>
\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
67 X-List-Received-Date: Sat, 31 Mar 2012 22:18:13 -0000
\r
70 test/tagging | 13 +++++++++++++
\r
71 1 files changed, 13 insertions(+), 0 deletions(-)
\r
73 diff --git a/test/tagging b/test/tagging
\r
74 index e4782ed..15eb42d 100755
\r
77 @@ -46,4 +46,17 @@ test_expect_equal "$output" "\
\r
78 thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (:\" inbox tag1 unread)
\r
79 thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag4 unread)"
\r
81 +test_begin_subtest "Batch stdin"
\r
82 +notmuch tag --stdin <<EOF
\r
83 +# %20 is a space in tag
\r
84 +T -:"%20 -tag1 +tag5 +tag6 -- One
\r
85 +T +tag1 -tag1 -tag4 +tag4 -- Two
\r
89 +output=$(notmuch search \* | notmuch_search_sanitize)
\r
90 +test_expect_equal "$output" "\
\r
91 +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag5 unread)
\r
92 +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag4 tag5 unread)"
\r