database error
[notmuch-archives.git] / a3 / 3365269d262a30a4ec541801c0b26e1efb37ca
1 Return-Path: <dme@hotblack-desiato.hh.sledj.net>\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 57CDD431FBD\r
6         for <notmuch@notmuchmail.org>; Fri,  2 May 2014 01:23:28 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.379\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.379 tagged_above=-999 required=5\r
12         tests=[NO_DNS_FOR_FROM=0.379] 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 YfbTMvNz2Fs1 for <notmuch@notmuchmail.org>;\r
16         Fri,  2 May 2014 01:23:22 -0700 (PDT)\r
17 Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net\r
18         [81.149.164.25])\r
19         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 91096431FC0\r
22         for <notmuch@notmuchmail.org>; Fri,  2 May 2014 01:23:17 -0700 (PDT)\r
23 Received: from hotblack-desiato.hh.sledj.net (hotblack-desiato.hh.sledj.net\r
24         [172.16.100.105])\r
25         by disaster-area.hh.sledj.net (Postfix) with ESMTPSA id 32EF6501586;\r
26         Fri,  2 May 2014 09:16:12 +0100 (BST)\r
27 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
28         id C879410345C; Fri,  2 May 2014 09:16:10 +0100 (BST)\r
29 From: David Edmondson <dme@dme.org>\r
30 To: notmuch@notmuchmail.org\r
31 Subject: [PATCH 5/5] Test: Add tests for "notmuch new" command line tags\r
32 Date: Fri,  2 May 2014 09:15:55 +0100\r
33 Message-Id: <1399018555-1994-6-git-send-email-dme@dme.org>\r
34 X-Mailer: git-send-email 1.9.2\r
35 In-Reply-To: <1399018555-1994-1-git-send-email-dme@dme.org>\r
36 References: <1399018555-1994-1-git-send-email-dme@dme.org>\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: Fri, 02 May 2014 08:23:28 -0000\r
50 \r
51 Add a simple set of tests for adding, removing and both adding and\r
52 removing tags when running "notmuch new".\r
53 ---\r
54  test/T540-new-tags.sh | 28 ++++++++++++++++++++++++++++\r
55  1 file changed, 28 insertions(+)\r
56  create mode 100755 test/T540-new-tags.sh\r
57 \r
58 diff --git a/test/T540-new-tags.sh b/test/T540-new-tags.sh\r
59 new file mode 100755\r
60 index 0000000..58e6c18\r
61 --- /dev/null\r
62 +++ b/test/T540-new-tags.sh\r
63 @@ -0,0 +1,28 @@\r
64 +#!/usr/bin/env bash\r
65 +test_description="'notmuch new' with tags"\r
66 +. ./test-lib.sh\r
67 +\r
68 +which notmuch\r
69 +\r
70 +test_begin_subtest "Add tags during new"\r
71 +generate_message\r
72 +notmuch new +happyfunball +flyfishing\r
73 +output=$(notmuch search "id:${gen_msg_id}")\r
74 +expected='thread:0000000000000001   2001-01-05 [1/1] Notmuch Test Suite; Add tags during new (flyfishing happyfunball inbox unread)'\r
75 +test_expect_equal "$output" "$expected"\r
76 +\r
77 +test_begin_subtest "Remove tags during new"\r
78 +generate_message\r
79 +notmuch new -inbox\r
80 +output=$(notmuch search "id:${gen_msg_id}")\r
81 +expected='thread:0000000000000002   2001-01-05 [1/1] Notmuch Test Suite; Remove tags during new (unread)'\r
82 +test_expect_equal "$output" "$expected"\r
83 +\r
84 +test_begin_subtest "Add and remove tags during new"\r
85 +generate_message\r
86 +notmuch new +happyfunball -inbox\r
87 +output=$(notmuch search "id:${gen_msg_id}")\r
88 +expected='thread:0000000000000003   2001-01-05 [1/1] Notmuch Test Suite; Add and remove tags during new (happyfunball unread)'\r
89 +test_expect_equal "$output" "$expected"\r
90 +\r
91 +test_done\r
92 -- \r
93 1.9.2\r
94 \r