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
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
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
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
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
51 Add a simple set of tests for adding, removing and both adding and
\r
52 removing tags when running "notmuch new".
\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
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
62 +++ b/test/T540-new-tags.sh
\r
64 +#!/usr/bin/env bash
\r
65 +test_description="'notmuch new' with tags"
\r
70 +test_begin_subtest "Add tags during new"
\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
77 +test_begin_subtest "Remove tags during new"
\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
84 +test_begin_subtest "Add and remove tags during new"
\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