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 1B031431FC2
\r
6 for <notmuch@notmuchmail.org>; Sun, 9 Mar 2014 14:41:21 -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 0FUhp-Lzv+GL for <notmuch@notmuchmail.org>;
\r
17 Sun, 9 Mar 2014 14:41:15 -0700 (PDT)
\r
18 Received: from mail-la0-f50.google.com (mail-la0-f50.google.com
\r
19 [209.85.215.50]) (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 6D448431FD2
\r
22 for <notmuch@notmuchmail.org>; Sun, 9 Mar 2014 14:40:52 -0700 (PDT)
\r
23 Received: by mail-la0-f50.google.com with SMTP id y1so4116527lam.37
\r
24 for <notmuch@notmuchmail.org>; Sun, 09 Mar 2014 14:40:51 -0700 (PDT)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=1e100.net; s=20130820;
\r
27 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
\r
28 :references:in-reply-to:references;
\r
29 bh=3GQNnolPfjkpUl2rhF7DeR0Imw41AIIKbLA7J/KTrnc=;
\r
30 b=j8PSj5OtznnWTbTcHyaNyQt1sS4YveH8PmwGp+p5UqC5yCFwi9YhwS1/uhWT+/AFtP
\r
31 zoT+w+Qo464ZF2DXlXQvh7CwNB0Q2CVPheMhTmvDQSzHINFhnCdqOb6BfAUmSXwRloHN
\r
32 GEFcs+30DNlWyVgw8m3E88EIGUO1p7O3BCNhgGjHIYEFSU5y5MBe4oTDUreeyar4zZni
\r
33 3+BfwMvv2muTUBleRjn/dcqiwchcdCMU0jgRm/liXd94H8xBxLfLNxt1ZsndMjvRk8gd
\r
34 3BKnCGk15Ok2ibMk/xj40IsD0CpWgcE/d/7CfTRH10IOA6JnVEqfJk8IGPCUy82xP/En
\r
37 ALoCoQkRIeWRaupJP/08TxzsF4dCXu1ataS6apf6PU8kdjvRTlUOi7mZ/IrjQ8BKhIkby6krCDit
\r
38 X-Received: by 10.152.23.39 with SMTP id j7mr7090130laf.35.1394401249874;
\r
39 Sun, 09 Mar 2014 14:40:49 -0700 (PDT)
\r
40 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.
\r
42 by mx.google.com with ESMTPSA id sx1sm26916600lac.1.2014.03.09.14.40.48
\r
43 for <multiple recipients>
\r
44 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
45 Sun, 09 Mar 2014 14:40:49 -0700 (PDT)
\r
46 From: Jani Nikula <jani@nikula.org>
\r
47 To: notmuch@notmuchmail.org
\r
48 Subject: [PATCH v4 05/13] test: make insert test use the path: prefix
\r
49 Date: Sun, 9 Mar 2014 23:40:26 +0200
\r
51 <5b766663f139acec8448cb38dcfc8b6358bcc6bc.1394400503.git.jani@nikula.org>
\r
52 X-Mailer: git-send-email 1.9.0
\r
53 In-Reply-To: <cover.1394400503.git.jani@nikula.org>
\r
54 References: <cover.1394400503.git.jani@nikula.org>
\r
55 In-Reply-To: <cover.1394400503.git.jani@nikula.org>
\r
56 References: <cover.1394400503.git.jani@nikula.org>
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Sun, 09 Mar 2014 21:41:21 -0000
\r
71 This is a more strict test for the insert test.
\r
73 test/T070-insert.sh | 10 +++++-----
\r
74 1 file changed, 5 insertions(+), 5 deletions(-)
\r
76 diff --git a/test/T070-insert.sh b/test/T070-insert.sh
\r
77 index b77c5e13c87f..ea9db07e2fa2 100755
\r
78 --- a/test/T070-insert.sh
\r
79 +++ b/test/T070-insert.sh
\r
80 @@ -126,14 +126,14 @@ test_expect_equal "$dirname" "$MAIL_DIR/new"
\r
81 test_begin_subtest "Insert message into folder"
\r
83 notmuch insert --folder=Drafts < "$gen_msg_filename"
\r
84 -output=$(notmuch search --output=files folder:Drafts)
\r
85 +output=$(notmuch search --output=files path:Drafts/new)
\r
86 dirname=$(dirname "$output")
\r
87 test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new"
\r
89 test_begin_subtest "Insert message into folder, add/remove tags"
\r
91 notmuch insert --folder=Drafts +draft -unread < "$gen_msg_filename"
\r
92 -output=$(notmuch search --output=messages folder:Drafts tag:draft NOT tag:unread)
\r
93 +output=$(notmuch search --output=messages path:Drafts/cur tag:draft NOT tag:unread)
\r
94 test_expect_equal "$output" "id:$gen_msg_id"
\r
97 @@ -143,21 +143,21 @@ test_expect_code 1 "Insert message into non-existent folder" \
\r
98 test_begin_subtest "Insert message, create folder"
\r
100 notmuch insert --folder=F --create-folder +folder < "$gen_msg_filename"
\r
101 -output=$(notmuch search --output=files folder:F tag:folder)
\r
102 +output=$(notmuch search --output=files path:F/new tag:folder)
\r
103 basename=$(basename "$output")
\r
104 test_expect_equal_file "$gen_msg_filename" "$MAIL_DIR/F/new/${basename}"
\r
106 test_begin_subtest "Insert message, create subfolder"
\r
108 notmuch insert --folder=F/G/H/I/J --create-folder +folder < "$gen_msg_filename"
\r
109 -output=$(notmuch search --output=files folder:F/G/H/I/J tag:folder)
\r
110 +output=$(notmuch search --output=files path:F/G/H/I/J/new tag:folder)
\r
111 basename=$(basename "$output")
\r
112 test_expect_equal_file "$gen_msg_filename" "${MAIL_DIR}/F/G/H/I/J/new/${basename}"
\r
114 test_begin_subtest "Insert message, create existing subfolder"
\r
116 notmuch insert --folder=F/G/H/I/J --create-folder +folder < "$gen_msg_filename"
\r
117 -output=$(notmuch count folder:F/G/H/I/J tag:folder)
\r
118 +output=$(notmuch count path:F/G/H/I/J/new tag:folder)
\r
119 test_expect_equal "$output" "2"
\r