Re: [PATCH 0/2] Prompting for the GPG password within Emacs
[notmuch-archives.git] / ad / 6e5099d96a4b0bc56c4e2cecc9197aa8fc6edb
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 65D8A431FAF\r
6         for <notmuch@notmuchmail.org>; Tue, 30 Oct 2012 13:33:22 -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
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \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 5ZxNUp0zoblx for <notmuch@notmuchmail.org>;\r
17         Tue, 30 Oct 2012 13:33:21 -0700 (PDT)\r
18 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
19         [209.85.217.181]) (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 7696D429E30\r
22         for <notmuch@notmuchmail.org>; Tue, 30 Oct 2012 13:33:08 -0700 (PDT)\r
23 Received: by mail-lb0-f181.google.com with SMTP id gg6so567600lbb.26\r
24         for <notmuch@notmuchmail.org>; Tue, 30 Oct 2012 13:33:07 -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:mime-version:content-type\r
29         :content-transfer-encoding:x-gm-message-state;\r
30         bh=HT2vp26axh3dG68VO95zmxJ7TSz6nDi+6pJshCTXI0I=;\r
31         b=LqEcfUc+Dl0f2eoRA/O03Gi4ntyBevq6A1xvvYf6Uognj1w2RCRzEQuOSAWZ4XrWy9\r
32         zygTaRN6qhMTrI/7U6pC3xsiuLjPxo2M5ZSmsjaWoGHKzBDnJyZ2HBRyiTKo/CapjCu+\r
33         WHtW9uV+oi6hXWb9UeeQaJSJFX0SLymbLdbhpb4duZPTUb5SE2RK8rsCUEATLh5ZjvkY\r
34         Fi5IBEw9OK/eraGoGAqou5AgiYmKgmJVKJSFLniuVY5BwpEufbKvaIPXGeTK1osZyRwJ\r
35         MXZ+n+gUFp0XaN5Coa718ceCIu+KLkgbZ6xiWQn+ev7xq4hOt58oPS4aU1Bcue0bDbes\r
36         hnkQ==\r
37 Received: by 10.152.104.77 with SMTP id gc13mr31226022lab.16.1351629187882;\r
38         Tue, 30 Oct 2012 13:33:07 -0700 (PDT)\r
39 Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
40         [80.223.81.27])\r
41         by mx.google.com with ESMTPS id pz9sm662461lab.11.2012.10.30.13.33.06\r
42         (version=SSLv3 cipher=OTHER); Tue, 30 Oct 2012 13:33:07 -0700 (PDT)\r
43 From: Jani Nikula <jani@nikula.org>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH v6 7/9] test: add tests for date:since..until range queries\r
46 Date: Tue, 30 Oct 2012 22:32:38 +0200\r
47 Message-Id:\r
48  <6d48bc38adb27e7a6da8f4094be417220a2bf9c7.1351626272.git.jani@nikula.org>\r
49 X-Mailer: git-send-email 1.7.10.4\r
50 In-Reply-To: <cover.1351626272.git.jani@nikula.org>\r
51 References: <cover.1351626272.git.jani@nikula.org>\r
52 In-Reply-To: <cover.1351626272.git.jani@nikula.org>\r
53 References: <cover.1351626272.git.jani@nikula.org>\r
54 MIME-Version: 1.0\r
55 Content-Type: text/plain; charset=UTF-8\r
56 Content-Transfer-Encoding: 8bit\r
57 X-Gm-Message-State:\r
58  ALoCoQnD9LCRMughWQEs2asubJO9jgNVAr1h3Mr+fMAPG0aGSZLtMO2RuP/ikqz954Va2F0sWKW8\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Tue, 30 Oct 2012 20:33:22 -0000\r
72 \r
73 A brief initial test set.\r
74 ---\r
75  test/notmuch-test |    1 +\r
76  test/search-date  |   21 +++++++++++++++++++++\r
77  2 files changed, 22 insertions(+)\r
78  create mode 100755 test/search-date\r
79 \r
80 diff --git a/test/notmuch-test b/test/notmuch-test\r
81 index 7eadfdf..9a1b375 100755\r
82 --- a/test/notmuch-test\r
83 +++ b/test/notmuch-test\r
84 @@ -61,6 +61,7 @@ TESTS="\r
85    emacs-show\r
86    missing-headers\r
87    parse-time-string\r
88 +  search-date\r
89  "\r
90  TESTS=${NOTMUCH_TESTS:=$TESTS}\r
91  \r
92 diff --git a/test/search-date b/test/search-date\r
93 new file mode 100755\r
94 index 0000000..70bcf34\r
95 --- /dev/null\r
96 +++ b/test/search-date\r
97 @@ -0,0 +1,21 @@\r
98 +#!/usr/bin/env bash\r
99 +test_description="date:since..until queries"\r
100 +. ./test-lib.sh\r
101 +\r
102 +add_email_corpus\r
103 +\r
104 +test_begin_subtest "Absolute date range"\r
105 +output=$(notmuch search date:2010-12-16..12/16/2010 | notmuch_search_sanitize)\r
106 +test_expect_equal "$output" "thread:XXX   2010-12-16 [1/1] Olivier Berger; Essai accentuĂ© (inbox unread)"\r
107 +\r
108 +test_begin_subtest "Absolute time range with TZ"\r
109 +notmuch search date:18-Nov-2009_02:19:26-0800..2009-11-18_04:49:52-06:00 | notmuch_search_sanitize > OUTPUT\r
110 +cat <<EOF >EXPECTED\r
111 +thread:XXX   2009-11-18 [1/3] Carl Worth| Jan Janak; [notmuch] What a great idea! (inbox unread)\r
112 +thread:XXX   2009-11-18 [1/2] Carl Worth| Jan Janak; [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
113 +thread:XXX   2009-11-18 [1/3] Carl Worth| Aron Griffis, Keith Packard; [notmuch] archive (inbox unread)\r
114 +thread:XXX   2009-11-18 [1/2] Carl Worth| Keith Packard; [notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)\r
115 +EOF\r
116 +test_expect_equal_file OUTPUT EXPECTED\r
117 +\r
118 +test_done\r
119 -- \r
120 1.7.10.4\r
121 \r