Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / fc / be313c57d21aaef5c0baff0b5044e4c34996a4
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 5FC05431FAF\r
6         for <notmuch@notmuchmail.org>; Fri,  3 Aug 2012 14:52:10 -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 E8l+YzmYKd43 for <notmuch@notmuchmail.org>;\r
17         Fri,  3 Aug 2012 14:52:09 -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 21CA1431FBF\r
22         for <notmuch@notmuchmail.org>; Fri,  3 Aug 2012 14:52:08 -0700 (PDT)\r
23 Received: by mail-lb0-f181.google.com with SMTP id gk1so621084lbb.26\r
24         for <notmuch@notmuchmail.org>; Fri, 03 Aug 2012 14:52:08 -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=bWsf1sBWrYbJ7kMbQ4QFG4lFe3qbMtGJ0KC1EsyK9NfbMbo3Ea3u6liZ6LZjIOcuCS\r
31         i9qBv9IqVFc571oKwrYv88bUvyxJpZ2Czfq2leEfRpM25n4jjwDQM9AbUQBBpUYwE/NX\r
32         WSVYMZjlgchz/JWAeBB3+N1bI7INwDOWb0yykttmEflSUGdmxLnDM03KCiEVDKMQGXuQ\r
33         fgwauoSP+h01q40EBnAmM13qa4Mdbrxl4L05UFLYMjWTHXOnj8DV/FTevm5ozDNfIVgv\r
34         KC+K+bFGlv1+2yqFd2p8EgUxNUVHUuCw/cFF04QtAhBlgycLGJG9svLV+swUCm1KeUbD\r
35         KDWg==\r
36 Received: by 10.112.36.42 with SMTP id n10mr1246894lbj.7.1344030728721;\r
37         Fri, 03 Aug 2012 14:52:08 -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 i4sm2251331lbg.17.2012.08.03.14.52.07\r
41         (version=SSLv3 cipher=OTHER); Fri, 03 Aug 2012 14:52:08 -0700 (PDT)\r
42 From: Jani Nikula <jani@nikula.org>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH 4/7] test: add smoke tests for the date/time parser module\r
45 Date: Sat,  4 Aug 2012 00:51:49 +0300\r
46 Message-Id:\r
47  <e16a73321088e6f7504e8928c49d8f50797cd46e.1344028781.git.jani@nikula.org>\r
48 X-Mailer: git-send-email 1.7.9.5\r
49 In-Reply-To: <cover.1344028781.git.jani@nikula.org>\r
50 References: <cover.1344028781.git.jani@nikula.org>\r
51 In-Reply-To: <cover.1344028781.git.jani@nikula.org>\r
52 References: <cover.1344028781.git.jani@nikula.org>\r
53 X-Gm-Message-State:\r
54  ALoCoQm0dkkfb8u3SFASfFowLOH/TGwbi1el8wCZP385odT55urSjYURSOwOn+PniOah8zw5WYAf\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: Fri, 03 Aug 2012 21:52:10 -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