From patchwork Thu Jun 30 11:45:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 14469 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id EBE622BAC; Thu, 30 Jun 2016 13:46:13 +0200 (CEST) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id DD7F52BA8 for ; Thu, 30 Jun 2016 13:46:12 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id r201so114741335wme.1 for ; Thu, 30 Jun 2016 04:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=IZ3enw7rfr1MwlzciDP0g3hsSUJ4DUQ3Ton3cffLRhE=; b=xeDT6JacymctztMVZxzceyIwPyxseGH3Is6dJNQgjpJE4qNxhQyWJr+WXr1tTViuDR 7z3Ir427Ylzil00E6fRZRzgfwyUzLozdtKYrwgT9+CFvttdqCVk3HaYXQhbo5KEmca3L 9wmTcx4YZkdrAlasob075TtR9hX1IWMFPulljkQQG6A9PvLGMJV16yJ1ubpyg+ofbvK+ UnicbmO5+cV78uYL/4tj1X8gZ8FUopgavFkASuoOiFtd8isFznv37r6dHrALQornpHH0 Yt6JEPmAo/n2IFD4KpQEs4/mZ7DjrZ7al4X4L5TWAzTrebH/SRW51KWvZTDAB/LSW0RA L2zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=IZ3enw7rfr1MwlzciDP0g3hsSUJ4DUQ3Ton3cffLRhE=; b=WVTVdNTSggesik5JdJbrYSh+XXigWyyECttiOOmcohQ1IGuwCtEESpY3B/S2x6OAM3 sfDD8WERdKS5il961G+FUANe7dysada1/IZjYYRCxjrRr2r7otvEP5SVnqw9ZGr5n0Kn no+q6YU+8BNWXlZeoUlxEx1ch5ncECLjJfYJVOsqFA47ZuOLolvUUcjBjeZ2pWwPSbuu +JjPM3lFMDm/PtDjsG67mrERpDiMuhu3A2YC/HJ6h6z0tqbxz18xb5UU2qImBubK7gIq 0CWQVzkYVco4ad52RRvXdb0amOTIpIfKBxisfaQnrdGgwf7KA5kbGtMLIagi61vRuZsC mJug== X-Gm-Message-State: ALyK8tJRk9HLQZjhkko2y1PfksBmpze9ooXjVAATj7U0yS/rwRfrRARISWaKVTDfgbh7PXES X-Received: by 10.28.147.7 with SMTP id v7mr13552693wmd.37.1467287172426; Thu, 30 Jun 2016 04:46:12 -0700 (PDT) Received: from XPS13.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id d137sm3446628wmd.12.2016.06.30.04.46.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jun 2016 04:46:11 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Thu, 30 Jun 2016 13:45:37 +0200 Message-Id: <1467287137-30964-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] scripts: test clean build when config have changed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" If there is a change in the config directory the build test will refresh the tested build config to take into account new options. The git working directory and the last git commit are checked for a change in config/. Signed-off-by: Thomas Monjalon --- scripts/test-build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/test-build.sh b/scripts/test-build.sh index 24c0202..5bcecfc 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -130,7 +130,12 @@ reset_env () config () # { - if [ ! -e $1/.config ] ; then + reconfig=false + if git rev-parse 2>&- && [ -n "$(git diff HEAD~ -- config)" ] ; then + echo 'Default config may have changed' + reconfig=true + fi + if [ ! -e $1/.config ] || $reconfig ; then echo "================== Configure $1" make T=$2 O=$1 config