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 4E13C6DE0318 for ; Mon, 11 Sep 2017 10:17:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.04 X-Spam-Level: X-Spam-Status: No, score=0.04 tagged_above=-999 required=5 tests=[AWL=0.060, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] 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 pDV21iReF89B for ; Mon, 11 Sep 2017 10:17:54 -0700 (PDT) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by arlo.cworth.org (Postfix) with ESMTPS id 2DF076DE0314 for ; Mon, 11 Sep 2017 10:17:54 -0700 (PDT) Received: by mail-lf0-f42.google.com with SMTP id 80so20281266lfy.4 for ; Mon, 11 Sep 2017 10:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=t0zW3siFTE+JXOhxa80S5qVsxwCwyZITO7KNBE6+6iM=; b=tWJvjjeMfOg64JKtC5JrjnVcRt7omZa41THTgaRCJYcikGSkexDYqK3ZJnV9a+ZdTi 5KJxrlHQ72Uwd1rBuhmhWyipvrY2GtVjWHAujAGAoBicWYycz1mBurBQ8qBhQwdqkZ/f pmJmBf6cjKTWWmhlEScLiIJnYV3x4pPzdJaEKhNLpPl4WMJdDOmQsJzFDoPix1jTW7xs XXM+09jm2JLnwj0yegPnMKV35ugHtWpwQGbW5KBpoy7nsTFC2+ruZX9pzV92it54oYpC SaK5jw5dObM8dcPV2nO6Fd9E+arBJ3VvjTnZYXbScmsW4veMx30W5op5tnrqylqL7WTb WKfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=t0zW3siFTE+JXOhxa80S5qVsxwCwyZITO7KNBE6+6iM=; b=RSapUpZUfixC0L0L1+qT7ag49qm3BgHrZmmekqHMC+32Pjj68tIVx2tk5LUskOwL4a T9R9d1MJZhKHjBw46LjeyxdVQWNJiVFHHuI1PSFp8j4aGs152zxU8KdnVcCUNKHAh1KD MCMQrbNu6jpKgZXQ8cJCzk5JhM0tND4H0D4iJOif2DBY+frZtOIjrw43o+ESGcpbrZLU 8srb5vYX2iYD111k6pDJOLrTv3Yr4Pm13oVg1fKQ2OSVPWIiKYYKA7TYCu8GEj9zYuF1 v1quf24ly+iMc2KpFDeK0LN4q4k0k1aSbk8LSpS5js9P9dpnv5W5U/Ss/+F3uI+FS2cB /USA== X-Gm-Message-State: AHPjjUjqnEwvgHaFfIgC/ir7gjgBmSMs3aU0Q7LHrK9n7lpr/UQwders Sspwz/9eX9lNQ1bW X-Google-Smtp-Source: AOwi7QCBm5yA7oGd6BLLs700yVGOcxbi9ma7AdComQlmdmNQlx71xg62Rn6Xsn8uUVqO9vYWQ1i7cw== X-Received: by 10.46.80.21 with SMTP id e21mr4916065ljb.78.1505150271946; Mon, 11 Sep 2017 10:17:51 -0700 (PDT) Received: from localhost (mobile-access-5d6a60-234.dhcp.inet.fi. [93.106.96.234]) by smtp.gmail.com with ESMTPSA id s5sm216503lfb.14.2017.09.11.10.17.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Sep 2017 10:17:51 -0700 (PDT) From: Jani Nikula To: Jani Nikula , notmuch@notmuchmail.org Subject: [PATCH v2] devel: add script to test out-of-tree builds Date: Mon, 11 Sep 2017 20:17:47 +0300 Message-Id: <20170911171747.5426-1-jani@nikula.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170910115617.12685-2-jani@nikula.org> References: <20170910115617.12685-2-jani@nikula.org> 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, 11 Sep 2017 17:17:55 -0000 Something I used for 'git bisect run', but we should really add this as part of our process. --- v2: add set -u, and remove the useless cd. --- devel/out-of-tree-build-check.sh | 15 +++++++++++++++ 1 file changed, 15 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..984b4b5f65f5 --- /dev/null +++ b/devel/out-of-tree-build-check.sh @@ -0,0 +1,15 @@ +#!/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 "$@" + +rm -rf $builddir -- 2.11.0