Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / df / c467d11de0a9361dae2cbc1dbdfb4ced8a6176
1 Return-Path: <bremner@tesseract.cs.unb.ca>\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 CB4E7431FD2\r
6         for <notmuch@notmuchmail.org>; Thu,  3 Apr 2014 19:44:51 -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 kRfpeCzHKx2Y for <notmuch@notmuchmail.org>;\r
16         Thu,  3 Apr 2014 19:44:50 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18         [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id DE6E3431FCB\r
21         for <notmuch@notmuchmail.org>; Thu,  3 Apr 2014 19:44:48 -0700 (PDT)\r
22 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
23         4.72) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
24         id 1WVtXo-00017O-79; Fri, 04 Apr 2014 02:07:48 +0000\r
25 Received: (nullmailer pid 4022 invoked by uid 1000); Thu, 03 Apr 2014\r
26         19:41:39 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: [Patch v6 6/6] test: verify tag backup generated by database upgrade\r
30 Date: Thu,  3 Apr 2014 16:41:23 -0300\r
31 Message-Id: <1396554083-3892-7-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 1.9.0\r
33 In-Reply-To: <1396554083-3892-1-git-send-email-david@tethera.net>\r
34 References: <1396554083-3892-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: Fri, 04 Apr 2014 02:44:52 -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..7d5d5aa 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/dump-*.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