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 8397E6DE1357 for ; Mon, 25 Sep 2017 13:39:56 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: -0.072 X-Spam-Level: X-Spam-Status: No, score=-0.072 tagged_above=-999 required=5 tests=[AWL=0.139, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211] 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 97Tn50aPaYVg for ; Mon, 25 Sep 2017 13:39:56 -0700 (PDT) Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by arlo.cworth.org (Postfix) with ESMTPS id 33BF86DE1325 for ; Mon, 25 Sep 2017 13:39:27 -0700 (PDT) Received: by mail-wr0-f169.google.com with SMTP id g29so9968871wrg.11 for ; Mon, 25 Sep 2017 13:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=YC0dKzq+4g4dlb3EMp4r4fS+xAXGUwazFNgEefjcSKo=; b=TriMX04JeCcQWQWarS2e/PWEmJ2Awc3A/NFV3uluwPiqZ6R9po9xPdeGKffaCVCzDH UDFg4o8qjWQ4aFdEw2UU8cbDJARdffDYvWiTNWeqt2iPnCyWRh5Pcb/zqv5H9yohovSU xfOzJQZlfsAk924Gqe3vxjA72NRrsvKFfjerLSgZgVCfCIfTGKicLIzgph7lAoF8k1ti yOJjfxKWqimp7x9qzdug6sBJaqdOEiYqhQ49hortmWrW1jrVvx9iQ6QwQSudMZI4c4aU AQY85DZww7woGpFf9MZNb6fDLe7PtgclzGbyxiB4c7Fpv1mCAvyz4Q57Ux2+FrZf7XXP Uuhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=YC0dKzq+4g4dlb3EMp4r4fS+xAXGUwazFNgEefjcSKo=; b=cHVM5McHzlpm8RGssAkqK/leiKCFt4ERbHFDX6CDI4SkYnwYifgMe1BTEKaFDqOOyx uDtYOuTcXSC47/syq5iIBw0UFCpBCDt3IZwp1MN04zWcfUYJPpl+fAUFF5mUvqwILU4c +KESn1owyR2PH628PJlcffK1VC9FFxJzJya/5MwF+RfZBgSlvZZOu/OHD9vMbMscPOli J0lV5AQPwc0XMlf/4XAs8zGk/n7z7x0rC26ZClMKnCLKUbySytChewGSM8CZOUieILcz qmhVat1jJCzDr3wem/dgRDYnWkULgWSlH6dww99JHdY3dGewlWEM3NGuzWdx2UY1iy6A 0wFg== X-Gm-Message-State: AHPjjUhTc9IRI/sfBm+TZOlBhj5n61Z5SVuvOD8yKVsWBUdHFlioY2F2 /hE/OfBRo2Y+gWpfClmSUx1FBH/le/o= X-Google-Smtp-Source: AOwi7QDIam42j1VQsJSh2ZGSg1HxSmSrUEsUXKn//Ib+POtnRjo3qHhr49+c1slxX39JbcM9J6ykIQ== X-Received: by 10.25.79.78 with SMTP id a14mr2671897lfk.2.1506371964705; Mon, 25 Sep 2017 13:39:24 -0700 (PDT) Received: from localhost (mobile-access-5d6a60-234.dhcp.inet.fi. [93.106.96.234]) by smtp.gmail.com with ESMTPSA id g132sm1111737lfe.13.2017.09.25.13.39.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Sep 2017 13:39:24 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 24/24] devel: add script to test out-of-tree builds Date: Mon, 25 Sep 2017 23:38:40 +0300 Message-Id: <578efe3a1c55a7030f4f58d56be8ae8a3149cd5d.1506370901.git.jani@nikula.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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, 25 Sep 2017 20:39:56 -0000 Something I used for 'git bisect run', but we should really add this as part of our process. Can also be used for running out-of-tree tests with e.g.: $ devel/out-of-tree-build-check.sh V=1 test --- devel/out-of-tree-build-check.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 devel/out-of-tree-build-check.sh diff --git a/devel/out-of-tree-build-check.sh b/devel/out-of-tree-build-check.sh new file mode 100755 index 000000000000..917752ff72cb --- /dev/null +++ b/devel/out-of-tree-build-check.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# test out-of-tree builds in a temp directory +# passes all args to make + +set -eu + +srcdir="$(cd "$(dirname "$0")"/.. && pwd)" +builddir=$(mktemp -d) + +cd $builddir + +$srcdir/configure +make "$@" + +cd $srcdir +rm -rf $builddir -- 2.11.0