Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 20E90431FBF for ; Wed, 5 Mar 2014 05:11:13 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TxiNLj1Xv2Vw for ; Wed, 5 Mar 2014 05:11:04 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id B33D7431FBD for ; Wed, 5 Mar 2014 05:11:04 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id F0C9C100245; Wed, 5 Mar 2014 15:10:56 +0200 (EET) From: Tomi Ollila To: David Bremner , Jani Nikula , notmuch@notmuchmail.org Subject: Re: [PATCH v2 00/13] literal folder: prefix, new path: prefix In-Reply-To: <87fvmwvpbm.fsf@zancas.localnet> References: <87mwh8mn58.fsf@zancas.localnet> <87siqxiwlc.fsf@nikula.org> <8738ix4qeg.fsf@tethera.net> <87fvmwvpbm.fsf@zancas.localnet> User-Agent: Notmuch/0.17+112~g4e0c1d5 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 13:11:13 -0000 On Wed, Mar 05 2014, David Bremner wrote: > Tomi Ollila writes: > >> >> I can contribute script with interface >> >> ./fetch-and-check.sh [--verify-only] destdir url sha256sum >> > > This script is basically embedded in > > > http://pivot.cs.unb.ca/git?p=notmuch.git;a=commitdiff;h=f93e32b11e517e160c755355de55ab465206dc62 > > except that I rebased away the verification in the actual test :( > > Something like > > diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh > index 3c0134f..768242d 100755 > --- a/test/T530-upgrade.sh > +++ b/test/T530-upgrade.sh > @@ -5,6 +5,10 @@ test_description="database upgrade" > > dbtarball=database-v1.tar.xz > > +cd $TEST_DIRECTORY/test-databases > +sha256sum --quiet --check ${dbtarball}.sha256 || error "checksum of database failed" > +cd - >& /dev/null more portable alternative: read sha256sum_exp < ${dbtarball}.sha256 #sha256sum_act=`openssl sha256 "${dbtarball}" | sed 's/ .*//'` sha256sum_act=`openssl sha256 "${dbtarball}"` test "$sha256sum_exp" = "$sha256sum_act" || error "checksum of database failed" (IIRC openssl sha256 is available at least in Mac OS X, probably in other BSD:s & Solaris too) > + > tar Jxf $TEST_DIRECTORY/test-databases/${dbtarball} -C ${MAIL_DIR} --strip-component > > test_begin_subtest "folder: search does not work with old database version"