From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3C45B6DE1688 for ; Mon, 13 Mar 2017 12:32:44 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.5 X-Spam-Level: X-Spam-Status: No, score=0.5 tagged_above=-999 required=5 tests=[AWL=-0.152, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L-i9bU0berr3 for ; Mon, 13 Mar 2017 12:32:43 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id E37CB6DE1683 for ; Mon, 13 Mar 2017 12:32:42 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id C21C410008D; Mon, 13 Mar 2017 21:32:03 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] test: verify test database v1 checksum in more portable way In-Reply-To: <877f3up1lu.fsf@tethera.net> References: <20170312125933.10316-1-tomi.ollila@iki.fi> <20170312183155.12481-1-tomi.ollila@iki.fi> <877f3up1lu.fsf@tethera.net> User-Agent: Notmuch/0.23.5+113~gfa95df1 (https://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Mon, 13 Mar 2017 19:32:44 -0000 On Mon, Mar 13 2017, David Bremner wrote: > Tomi Ollila writes: > >> Replaced use of sha256 (gnu coreutils binary) with more portable >> openssl sha256 execution. >> --- >> >> Works on Linux and also on my FreeBSD KVM environment. > > There's a tradeoff here. In a minimal GNU/Linux environment coreutils is > there but not openssl. So I don't mind the substitution (for the test K=C3=B6h... That did not come into my mind, but perhaps that is the fun of = it. I'd rather let this test fail on non-coreutils system (for the time being) than introduce more dependencies ;) -- have to think whether proposing alternative solution... And had to test that one: localhost$ sudo docker run --rm -it debian:8.7 /bin/bash=20 root@1c96aac39246:/# openssl bash: openssl: command not found root@1c96aac39246:/# sha1sum < /dev/null da39a3ee5e6b4b0d3255bfef95601890afd80709 - root@1c96aac39246:/# exit exit localhost$ Marking this particular patch obsolete. Tomi > suite), but I think you need to add a > "test_require_external prereq openssl" or equivalent to T530-upgrade.sh > > This will also require adding openssl as a debian build dependency; I > can also live with that, although it might inconvenience some people > building the debian-snapshot target. > > There's something aesthetically displeasing about hardcoding the > checksum into the test script but I think I'm just grumbling at this > point. I personally disagree (in specific cases like this), but would not have done that if there were simpler solution using the file...