Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / d7 / 00c04d84af03581f5d9695616e960e80cd55b7
1 Return-Path: <bremner@tethera.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 211BA431FB6\r
6         for <notmuch@notmuchmail.org>; Sun, 18 Dec 2011 05:15:43 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 LebLwPHYBCP1 for <notmuch@notmuchmail.org>;\r
16         Sun, 18 Dec 2011 05:15:41 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id AC9D5429E26\r
21         for <notmuch@notmuchmail.org>; Sun, 18 Dec 2011 05:15:41 -0800 (PST)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.79.193]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pBIDFdWr017888\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Sun, 18 Dec 2011 09:15:40 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1RcGaZ-0008Rb-6j; Sun, 18 Dec 2011 09:15:39 -0400\r
31 From: David Bremner <david@tethera.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH Draft 2 9/9] test: add tests for restore --auto\r
34 Date: Sun, 18 Dec 2011 09:15:11 -0400\r
35 Message-Id: <1324214111-32079-10-git-send-email-david@tethera.net>\r
36 X-Mailer: git-send-email 1.7.7.3\r
37 In-Reply-To: <1324214111-32079-1-git-send-email-david@tethera.net>\r
38 References: <id:87sjkmuck7.fsf@gmail.com>\r
39         <1324214111-32079-1-git-send-email-david@tethera.net>\r
40 Cc: David Bremner <bremner@debian.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sun, 18 Dec 2011 13:15:43 -0000\r
54 \r
55 From: David Bremner <bremner@debian.org>\r
56 \r
57 We start by restoring the original tags, and making sure that restore\r
58 worked. Next we test each possible input to autodetection, both\r
59 explicit (with --format=auto) and implicit (without --format).\r
60 ---\r
61  test/dump-restore |   34 ++++++++++++++++++++++++++++++++--\r
62  1 files changed, 32 insertions(+), 2 deletions(-)\r
63 \r
64 diff --git a/test/dump-restore b/test/dump-restore\r
65 index ef4a63e..8400c7b 100755\r
66 --- a/test/dump-restore\r
67 +++ b/test/dump-restore\r
68 @@ -119,7 +119,6 @@ test_begin_subtest 'format=notmuch, round trip with strange tags'\r
69      notmuch dump --format=notmuch > OUTPUT.$test_count\r
70  test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count\r
71  \r
72 -\r
73  test_begin_subtest 'format=notmuch, checking encoded output'\r
74      cp /dev/null EXPECTED.$test_count\r
75      notmuch dump --format=notmuch -- from:cworth |\\r
76 @@ -128,6 +127,37 @@ test_begin_subtest 'format=notmuch, checking encoded output'\r
77      notmuch dump --format=notmuch -- from:cworth  > OUTPUT.$test_count\r
78  test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count\r
79  \r
80 -notmuch restore --format=notmuch < BACKUP\r
81 +test_begin_subtest 'restoring sane tags'\r
82 +    notmuch restore --format=notmuch < BACKUP\r
83 +    notmuch dump --format=notmuch > OUTPUT.$test_count\r
84 +test_expect_equal_file BACKUP OUTPUT.$test_count\r
85 +\r
86 +test_begin_subtest 'format=notmuch, restore=auto'\r
87 +    notmuch dump --format=notmuch > EXPECTED.$test_count\r
88 +    notmuch tag -inbox -unread "*"\r
89 +    notmuch restore --format=auto < EXPECTED.$test_count\r
90 +    notmuch dump --format=notmuch > OUTPUT.$test_count\r
91 +test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count\r
92 +\r
93 +test_begin_subtest 'format=sup, restore=auto'\r
94 +    notmuch dump --format=sup > EXPECTED.$test_count\r
95 +    notmuch tag -inbox -unread "*"\r
96 +    notmuch restore --format=auto < EXPECTED.$test_count\r
97 +    notmuch dump --format=sup > OUTPUT.$test_count\r
98 +test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count\r
99 +\r
100 +test_begin_subtest 'format=notmuch, restore=default'\r
101 +    notmuch dump --format=notmuch > EXPECTED.$test_count\r
102 +    notmuch tag -inbox -unread "*"\r
103 +    notmuch restore < EXPECTED.$test_count\r
104 +    notmuch dump --format=notmuch > OUTPUT.$test_count\r
105 +test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count\r
106 +\r
107 +test_begin_subtest 'format=sup, restore=default'\r
108 +    notmuch dump --format=sup > EXPECTED.$test_count\r
109 +    notmuch tag -inbox -unread "*"\r
110 +    notmuch restore < EXPECTED.$test_count\r
111 +    notmuch dump --format=sup > OUTPUT.$test_count\r
112 +test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count\r
113  \r
114  test_done\r
115 -- \r
116 1.7.7.3\r
117 \r