[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / e4 / f0913770ce99bbe3902c49615383861b999c8c
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 1F483431FAF\r
6         for <notmuch@notmuchmail.org>; Sat,  4 Aug 2012 00:42:18 -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 dT5EfMqXj2q8 for <notmuch@notmuchmail.org>;\r
17         Sat,  4 Aug 2012 00:42:17 -0700 (PDT)\r
18 Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
19         [209.85.215.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 136B4431FB6\r
22         for <notmuch@notmuchmail.org>; Sat,  4 Aug 2012 00:42:11 -0700 (PDT)\r
23 Received: by mail-lpp01m010-f53.google.com with SMTP id u2so844636lag.26\r
24         for <notmuch@notmuchmail.org>; Sat, 04 Aug 2012 00:42:11 -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=K2h8eZUVEdZbrnEpiZbcEcyx5LQQeN85uxP8CQLF7H4=;\r
30         b=pSPDLyvEqaCxsmWdP+vvEXqq/2BsqZf40V192iLsusqmcLqLgfjgwYSkIh907gNVFC\r
31         YLektxJCwEQjeZd0vP9vNe54YtMXx4tAgikRCo9GXj6m5NKBmy2GiQUMdezHjlcroQYA\r
32         isQ5924TKsl0PhSlzfc/U0tQ/D8CIPYA/N1yQb25LM0t12meNKR807Z+3w+qdAAcbvh7\r
33         Ej6Wsgi5cwEFajFgYKTrpWH/WQGsVeHP10SVhyhNDn2Ocq2Z+OLpkSQdrJnIHOvzz+dA\r
34         Bqx7o0vaeNn0z4uctJ9er+bkXA3bP9d6HNkHtm61aIWPty0M3r1gNuXiVq13GT0/WHTK\r
35         fh+g==\r
36 Received: by 10.152.112.34 with SMTP id in2mr4012182lab.6.1344066131637;\r
37         Sat, 04 Aug 2012 00:42:11 -0700 (PDT)\r
38 Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
39         [80.223.81.27])\r
40         by mx.google.com with ESMTPS id sy1sm10831134lab.13.2012.08.04.00.42.09\r
41         (version=SSLv3 cipher=OTHER); Sat, 04 Aug 2012 00:42:10 -0700 (PDT)\r
42 From: Jani Nikula <jani@nikula.org>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH v2 4/7] test: add smoke tests for the date/time parser module\r
45 Date: Sat,  4 Aug 2012 10:41:42 +0300\r
46 Message-Id:\r
47  <76bd571d6a70b7714a6e295ba532b1db023c1b5b.1344065790.git.jani@nikula.org>\r
48 X-Mailer: git-send-email 1.7.9.5\r
49 In-Reply-To: <cover.1344065790.git.jani@nikula.org>\r
50 References: <cover.1344065790.git.jani@nikula.org>\r
51 In-Reply-To: <cover.1344065790.git.jani@nikula.org>\r
52 References: <cover.1344065790.git.jani@nikula.org>\r
53 X-Gm-Message-State:\r
54  ALoCoQk22uq62lqLjjZ77G7Evlux2RunFsSZVNSNACMStyJqI1yRZa516dA5qDtlQLOvVOrbtlXt\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\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, 04 Aug 2012 07:42:18 -0000\r
68 \r
69 Test the date/time parser module directly. Just a small sanity test\r
70 initially.\r
71 ---\r
72  test/notmuch-test      |    1 +\r
73  test/parse-time-string |   26 ++++++++++++++++++++++++++\r
74  2 files changed, 27 insertions(+)\r
75  create mode 100755 test/parse-time-string\r
76 \r
77 diff --git a/test/notmuch-test b/test/notmuch-test\r
78 index ea39dfc..80e687e 100755\r
79 --- a/test/notmuch-test\r
80 +++ b/test/notmuch-test\r
81 @@ -59,6 +59,7 @@ TESTS="\r
82    emacs-address-cleaning\r
83    emacs-hello\r
84    emacs-show\r
85 +  parse-time-string\r
86  "\r
87  TESTS=${NOTMUCH_TESTS:=$TESTS}\r
88  \r
89 diff --git a/test/parse-time-string b/test/parse-time-string\r
90 new file mode 100755\r
91 index 0000000..34b80d7\r
92 --- /dev/null\r
93 +++ b/test/parse-time-string\r
94 @@ -0,0 +1,26 @@\r
95 +#!/usr/bin/env bash\r
96 +test_description="date/time parser module"\r
97 +. ./test-lib.sh\r
98 +\r
99 +# This is currently just a quick sanity/smoke test.\r
100 +\r
101 +_date ()\r
102 +{\r
103 +    date -d "$*" +%s\r
104 +}\r
105 +\r
106 +_parse_time ()\r
107 +{\r
108 +    ${TEST_DIRECTORY}/parse-time --format=%s "$*"\r
109 +}\r
110 +\r
111 +test_begin_subtest "date(1) default format without TZ code"\r
112 +test_expect_equal "$(_parse_time Fri Aug 3 23:06:06 2012)" "$(_date Fri Aug 3 23:06:06 2012)"\r
113 +\r
114 +test_begin_subtest "date(1) --rfc-2822 format"\r
115 +test_expect_equal "$(_parse_time Fri, 03 Aug 2012 23:07:46 +0100)" "$(_date Fri, 03 Aug 2012 23:07:46 +0100)"\r
116 +\r
117 +test_begin_subtest "date(1) --rfc=3339=seconds format"\r
118 +test_expect_equal "$(_parse_time 2012-08-03 23:09:37+03:00)" "$(_date 2012-08-03 23:09:37+03:00)"\r
119 +\r
120 +test_done\r
121 -- \r
122 1.7.9.5\r
123 \r