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 C37A4431FAF
\r
6 for <notmuch@notmuchmail.org>; Fri, 7 Dec 2012 14:56:06 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 wdnoQsmUmSVi for <notmuch@notmuchmail.org>;
\r
16 Fri, 7 Dec 2012 14:56:06 -0800 (PST)
\r
17 Received: from mail-la0-f53.google.com (mail-la0-f53.google.com
\r
18 [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 16934431FAE
\r
21 for <notmuch@notmuchmail.org>; Fri, 7 Dec 2012 14:56:05 -0800 (PST)
\r
22 Received: by mail-la0-f53.google.com with SMTP id w12so753662lag.26
\r
23 for <notmuch@notmuchmail.org>; Fri, 07 Dec 2012 14:56:04 -0800 (PST)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=google.com; s=20120113;
\r
26 h=from:to:cc:subject:in-reply-to:references:user-agent:date
\r
27 :message-id:mime-version:content-type:x-gm-message-state;
\r
28 bh=3NjoijXUq8l8W2qjNw63KUqpiqiY7RzhlaiJDc3N4ik=;
\r
29 b=aRtiW0keQfQ2QDY8J2iu4PZvXsj0bHym5oDh36JTxttDTwmTumiJThlOqs+XjYd1Zx
\r
30 akh3EOQfHqOsonTyg41V95AvcilcF+ezg9dS10GuYVuQy7at60V+u4og77TunZqoDuR7
\r
31 brIvZv+BqupwkGmsyOwpBcwdF3HLBvBzPQXRzlFzPaqnU8LWZzdBYAIgokxsdsvmOp7A
\r
32 P5q4RamaVsAy3ni92WYmbcBU+8QcfM9y/LK2L0hFH4K8XmSmjBent3NAJrB/n+owYub1
\r
33 ZEUx7oPgDHOx0U9fobgpT87jF3bvmPqM8Q6gepdAT9vBFQT2xE4M1suJpfWY8+5Peslk
\r
35 Received: by 10.112.49.65 with SMTP id s1mr3129018lbn.123.1354920964459;
\r
36 Fri, 07 Dec 2012 14:56:04 -0800 (PST)
\r
37 Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.
\r
39 by mx.google.com with ESMTPS id fb1sm5164695lbb.15.2012.12.07.14.56.02
\r
40 (version=SSLv3 cipher=OTHER); Fri, 07 Dec 2012 14:56:03 -0800 (PST)
\r
41 From: Jani Nikula <jani@nikula.org>
\r
42 To: david@tethera.net, notmuch@notmuchmail.org
\r
43 Subject: Re: [Patch v3b 6/9] test: update dump-restore roundtripping test for
\r
45 In-Reply-To: <1354843607-17980-7-git-send-email-david@tethera.net>
\r
46 References: <1354843607-17980-1-git-send-email-david@tethera.net>
\r
47 <1354843607-17980-7-git-send-email-david@tethera.net>
\r
48 User-Agent: Notmuch/0.14+138~g7041c56 (http://notmuchmail.org) Emacs/23.4.1
\r
50 Date: Sat, 08 Dec 2012 00:56:01 +0200
\r
51 Message-ID: <87obi5xyim.fsf@nikula.org>
\r
53 Content-Type: text/plain; charset=us-ascii
\r
55 ALoCoQmkKOFWz/ldtX4rHbLfx7Azz+NTZdSMBbt4CW1Z5MSA2XnI8OL+4nI1qJiVpAtTsKxnP1AI
\r
56 Cc: David Bremner <bremner@debian.org>
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Fri, 07 Dec 2012 22:56:06 -0000
\r
71 On Fri, 07 Dec 2012, david@tethera.net wrote:
\r
72 > From: David Bremner <bremner@debian.org>
\r
74 > Now we can actually round trip these crazy tags and and message ids.
\r
75 > hex-xcode is no longer needed as it's built in.
\r
77 > test/dump-restore | 17 ++++++++---------
\r
78 > 1 file changed, 8 insertions(+), 9 deletions(-)
\r
80 > diff --git a/test/dump-restore b/test/dump-restore
\r
81 > index b4c807f..ce81e6f 100755
\r
82 > --- a/test/dump-restore
\r
83 > +++ b/test/dump-restore
\r
84 > @@ -99,23 +99,22 @@ notmuch dump --format=batch-tag from:cworth | sed 's/^.*-- id://' | \
\r
85 > test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count
\r
87 > test_begin_subtest 'roundtripping random message-ids and tags'
\r
88 > - test_subtest_known_broken
\r
89 > - ${TEST_DIRECTORY}/random-corpus --config-path=${NOTMUCH_CONFIG} \
\r
90 > - --num-messages=10
\r
93 > - ${TEST_DIRECTORY}/hex-xcode --direction=encode| \
\r
94 > + ${TEST_DIRECTORY}/random-corpus --config-path=${NOTMUCH_CONFIG}
\r
95 > + --num-messages=100
\r
97 What happened to the \ at the end of the line? Hmm, does it matter?
\r
102 > + notmuch dump --format=batch-tag| \
\r
103 > sort > EXPECTED.$test_count
\r
105 > notmuch tag +this_tag_is_very_unlikely_to_be_random '*'
\r
107 > - ${TEST_DIRECTORY}/hex-xcode --direction=decode < EXPECTED.$test_count | \
\r
108 > - notmuch restore 2>/dev/null
\r
109 > + notmuch restore --format=batch-tag < EXPECTED.$test_count
\r
111 > - notmuch dump| \
\r
112 > - ${TEST_DIRECTORY}/hex-xcode --direction=encode| \
\r
113 > + notmuch dump --format=batch-tag| \
\r
114 > sort > OUTPUT.$test_count
\r
116 > test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count
\r
120 > +# Note the database is "poisoned" for sup format at this point.
\r
124 > _______________________________________________
\r
125 > notmuch mailing list
\r
126 > notmuch@notmuchmail.org
\r
127 > http://notmuchmail.org/mailman/listinfo/notmuch
\r