Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 05 / 09b26d68f3c088382198de163ee0337bc105a4
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 3FF54429E29\r
6         for <notmuch@notmuchmail.org>; Tue,  1 Apr 2014 18:17:18 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 JZjARqXI-fLB for <notmuch@notmuchmail.org>;\r
16         Tue,  1 Apr 2014 18:17:16 -0700 (PDT)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 17812431E64\r
21         for <notmuch@notmuchmail.org>; Tue,  1 Apr 2014 18:16:51 -0700 (PDT)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <bremner@tethera.net>)\r
24         id 1WV9nO-00073S-OC; Tue, 01 Apr 2014 22:16:50 -0300\r
25 Received: (nullmailer pid 18509 invoked by uid 1000); Wed, 02 Apr 2014\r
26         01:16:27 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: [Patch v5 6/6] test: verify tag backup generated by database upgrade\r
30 Date: Tue,  1 Apr 2014 22:16:21 -0300\r
31 Message-Id: <1396401381-18128-7-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 1.9.0\r
33 In-Reply-To: <1396401381-18128-1-git-send-email-david@tethera.net>\r
34 References: <1396401381-18128-1-git-send-email-david@tethera.net>\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.13\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Wed, 02 Apr 2014 01:17:18 -0000\r
48 \r
49 'pre upgrade dump' is not much of a test, but at least this way we get\r
50 somewhat sensible behaviour if it fails.\r
51 ---\r
52  test/T530-upgrade.sh | 6 ++++++\r
53  1 file changed, 6 insertions(+)\r
54 \r
55 diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh\r
56 index d46e3d1..7a68ddf 100755\r
57 --- a/test/T530-upgrade.sh\r
58 +++ b/test/T530-upgrade.sh\r
59 @@ -25,6 +25,8 @@ test_begin_subtest "path: search does not work with old database version"\r
60  output=$(notmuch search path:foo)\r
61  test_expect_equal "$output" ""\r
62  \r
63 +test_expect_success 'pre upgrade dump' 'notmuch dump | sort > pre-upgrade-dump'\r
64 +\r
65  test_begin_subtest "database upgrade from format version 1"\r
66  output=$(notmuch new | sed -e 's/^Backing up tags to .*$/Backing up tags to FILENAME/')\r
67  test_expect_equal "$output" "\\r
68 @@ -34,6 +36,10 @@ Backing up tags to FILENAME\r
69  Your notmuch database has now been upgraded to database format version 2.\r
70  No new mail."\r
71  \r
72 +test_begin_subtest "tag backup matches pre-upgrade dump"\r
73 +gunzip -c ${MAIL_DIR}/.notmuch/backup-*.gz | sort > backup-dump\r
74 +test_expect_equal_file pre-upgrade-dump backup-dump\r
75 +\r
76  test_begin_subtest "folder: no longer matches in the middle of path"\r
77  output=$(notmuch search folder:baz)\r
78  test_expect_equal "$output" ""\r
79 -- \r
80 1.9.0\r
81 \r