1 Return-Path: <dmitry.kurochkin@gmail.com>
\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 251A5429E4E
\r
6 for <notmuch@notmuchmail.org>; Wed, 14 Dec 2011 12:24:54 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, 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 iArO19ZR7OkS for <notmuch@notmuchmail.org>;
\r
17 Wed, 14 Dec 2011 12:24:50 -0800 (PST)
\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com
\r
19 [209.85.161.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 19081429E4D
\r
22 for <notmuch@notmuchmail.org>; Wed, 14 Dec 2011 12:24:49 -0800 (PST)
\r
23 Received: by faaa5 with SMTP id a5so1764776faa.26
\r
24 for <notmuch@notmuchmail.org>; Wed, 14 Dec 2011 12:24:47 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=from:to:cc:subject:in-reply-to:references:user-agent:date
\r
27 :message-id:mime-version:content-type;
\r
28 bh=jA8NIbjDGkMwB6q/MkNQl4EuGXvLV+HvRDoHIm1NSLU=;
\r
29 b=pG8huOfGhum6iKu5/pO/DFEbaRaY7D2LsKBSU+TOojNaL5+OE2brIWA4AMhquacToE
\r
30 tzlFaDQLHWaXFAdpAm7l0rHaXrdtvVqzR8skcxhn5DJYOrRWzlTJ4Os28FWslJ4X26CX
\r
31 maUGFFcZVxZOOBUSY/6CvoZqcoytxCCSSFTt8=
\r
32 Received: by 10.180.4.167 with SMTP id l7mr203767wil.51.1323894287283;
\r
33 Wed, 14 Dec 2011 12:24:47 -0800 (PST)
\r
34 Received: from localhost ([91.144.186.21])
\r
35 by mx.google.com with ESMTPS id ei9sm5206278wid.0.2011.12.14.12.24.45
\r
36 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Wed, 14 Dec 2011 12:24:46 -0800 (PST)
\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
39 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
\r
40 Subject: Re: [Alpha PATCH 6/6] test: second set of dump/restore
\r
41 --format=notmuch tests
\r
42 In-Reply-To: <1323808075-7417-7-git-send-email-david@tethera.net>
\r
43 References: <1323808075-7417-1-git-send-email-david@tethera.net>
\r
44 <1323808075-7417-7-git-send-email-david@tethera.net>
\r
45 User-Agent: Notmuch/0.10.2+96~g74e5ae5 (http://notmuchmail.org) Emacs/23.3.1
\r
46 (x86_64-pc-linux-gnu)
\r
47 Date: Thu, 15 Dec 2011 00:24:08 +0400
\r
48 Message-ID: <87sjkmuck7.fsf@gmail.com>
\r
50 Content-Type: text/plain; charset=us-ascii
\r
51 Cc: David Bremner <bremner@debian.org>, pere@hungry.com
\r
52 X-BeenThere: notmuch@notmuchmail.org
\r
53 X-Mailman-Version: 2.1.13
\r
55 List-Id: "Use and development of the notmuch mail system."
\r
56 <notmuch.notmuchmail.org>
\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
60 List-Post: <mailto:notmuch@notmuchmail.org>
\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
64 X-List-Received-Date: Wed, 14 Dec 2011 20:24:54 -0000
\r
66 On Tue, 13 Dec 2011 16:27:55 -0400, David Bremner <david@tethera.net> wrote:
\r
67 > From: David Bremner <bremner@debian.org>
\r
69 > These one need the completed functionality in notmuch-restore. Fairly
\r
70 > exotic tags are tested, but no weird message id's.
\r
72 > test/dump-restore | 33 +++++++++++++++++++++++++++++++++
\r
73 > 1 files changed, 33 insertions(+), 0 deletions(-)
\r
75 > diff --git a/test/dump-restore b/test/dump-restore
\r
76 > index 48caf4e..122de5c 100755
\r
77 > --- a/test/dump-restore
\r
78 > +++ b/test/dump-restore
\r
79 > @@ -94,4 +94,37 @@ notmuch dump --format=sup -- from:cworth | tr -d \(\) > EXPECTED.$test_count
\r
80 > notmuch dump --format=notmuch -- from:cworth > OUTPUT.$test_count
\r
81 > test_expect_equal_file OUTPUT.$test_count EXPECTED.$test_count
\r
83 > +test_begin_subtest "format=notmuch, # round-trip"
\r
84 > +notmuch dump --format=sup | sort > EXPECTED.$test_count
\r
85 > +notmuch dump --format=notmuch | notmuch restore --format=notmuch
\r
86 > +notmuch dump --format=sup | sort > OUTPUT.$test_count
\r
87 > +test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count
\r
89 > +tag1='comic_swear=$&^%$^%\\//-+$^%$'
\r
90 > +enc1=$($TEST_DIRECTORY/hex-xcode e "$tag1")
\r
92 > +tag2=$(printf 'this\n tag\t has\n spaces')
\r
93 > +enc2=$($TEST_DIRECTORY/hex-xcode e "$tag2")
\r
95 > +notmuch dump --format=notmuch > BACKUP
\r
97 > +notmuch tag +"$tag1" +"$tag2" -inbox -unread "*"
\r
99 > +test_begin_subtest 'format=notmuch, round trip with strange tags'
\r
100 > + notmuch dump --format=notmuch > EXPECTED.$test_count
\r
101 > + notmuch dump --format=notmuch | notmuch restore --format=notmuch
\r
102 > + notmuch dump --format=notmuch > OUTPUT.$test_count
\r
104 Noticed this while looking at the 8bit patch. The indent offset should
\r
110 > +test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count
\r
113 > +test_begin_subtest 'format=notmuch, checking encoded output'
\r
114 > + cp /dev/null EXPECTED.$test_count
\r
115 > + notmuch dump --format=notmuch -- from:cworth |\
\r
116 > + awk "{ print \$1 \" $enc1 $enc2\" }" > EXPECTED.$test_count
\r
118 > + notmuch dump --format=notmuch -- from:cworth > OUTPUT.$test_count
\r
119 > +test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count
\r
121 > +notmuch restore --format=notmuch < BACKUP
\r
127 > _______________________________________________
\r
128 > notmuch mailing list
\r
129 > notmuch@notmuchmail.org
\r
130 > http://notmuchmail.org/mailman/listinfo/notmuch
\r