1 Return-Path: <tomi.ollila@iki.fi>
\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 20E90431FBF
\r
6 for <notmuch@notmuchmail.org>; Wed, 5 Mar 2014 05:11:13 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 TxiNLj1Xv2Vw for <notmuch@notmuchmail.org>;
\r
16 Wed, 5 Mar 2014 05:11:04 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id B33D7431FBD
\r
19 for <notmuch@notmuchmail.org>; Wed, 5 Mar 2014 05:11:04 -0800 (PST)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id F0C9C100245;
\r
22 Wed, 5 Mar 2014 15:10:56 +0200 (EET)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: David Bremner <david@tethera.net>, Jani Nikula <jani@nikula.org>,
\r
25 notmuch@notmuchmail.org
\r
26 Subject: Re: [PATCH v2 00/13] literal folder: prefix, new path: prefix
\r
27 In-Reply-To: <87fvmwvpbm.fsf@zancas.localnet>
\r
28 References: <cover.1393105055.git.jani@nikula.org>
\r
29 <87mwh8mn58.fsf@zancas.localnet> <87siqxiwlc.fsf@nikula.org>
\r
30 <8738ix4qeg.fsf@tethera.net> <m2d2i13up9.fsf@guru.guru-group.fi>
\r
31 <87fvmwvpbm.fsf@zancas.localnet>
\r
32 User-Agent: Notmuch/0.17+112~g4e0c1d5 (http://notmuchmail.org) Emacs/24.3.1
\r
33 (x86_64-unknown-linux-gnu)
\r
34 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
35 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
36 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
37 Date: Wed, 05 Mar 2014 15:10:56 +0200
\r
38 Message-ID: <m2lhwoeqov.fsf@guru.guru-group.fi>
\r
40 Content-Type: text/plain
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\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: Wed, 05 Mar 2014 13:11:13 -0000
\r
55 On Wed, Mar 05 2014, David Bremner <david@tethera.net> wrote:
\r
57 > Tomi Ollila <tomi.ollila@iki.fi> writes:
\r
60 >> I can contribute script with interface
\r
62 >> ./fetch-and-check.sh [--verify-only] destdir url sha256sum
\r
65 > This script is basically embedded in
\r
68 > http://pivot.cs.unb.ca/git?p=notmuch.git;a=commitdiff;h=f93e32b11e517e160c755355de55ab465206dc62
\r
70 > except that I rebased away the verification in the actual test :(
\r
74 > diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh
\r
75 > index 3c0134f..768242d 100755
\r
76 > --- a/test/T530-upgrade.sh
\r
77 > +++ b/test/T530-upgrade.sh
\r
78 > @@ -5,6 +5,10 @@ test_description="database upgrade"
\r
80 > dbtarball=database-v1.tar.xz
\r
82 > +cd $TEST_DIRECTORY/test-databases
\r
83 > +sha256sum --quiet --check ${dbtarball}.sha256 || error "checksum of database failed"
\r
84 > +cd - >& /dev/null
\r
86 more portable alternative:
\r
88 read sha256sum_exp < ${dbtarball}.sha256
\r
89 #sha256sum_act=`openssl sha256 "${dbtarball}" | sed 's/ .*//'`
\r
90 sha256sum_act=`openssl sha256 "${dbtarball}"`
\r
91 test "$sha256sum_exp" = "$sha256sum_act" || error "checksum of database failed"
\r
93 (IIRC openssl sha256 is available at least in Mac OS X, probably in other
\r
94 BSD:s & Solaris too)
\r
98 > tar Jxf $TEST_DIRECTORY/test-databases/${dbtarball} -C ${MAIL_DIR} --strip-component
\r
100 > test_begin_subtest "folder: search does not work with old database version"
\r