[PATCH v2 00/13] literal folder: prefix, new path: prefix
Tomi Ollila
tomi.ollila at iki.fi
Wed Mar 5 05:10:56 PST 2014
On Wed, Mar 05 2014, David Bremner <david at tethera.net> wrote:
> Tomi Ollila <tomi.ollila at iki.fi> 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"
More information about the notmuch
mailing list