From patchwork Tue Mar 29 16:15:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 11788 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 19BE658D9; Tue, 29 Mar 2016 18:18:18 +0200 (CEST) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 08529568A for ; Tue, 29 Mar 2016 18:18:12 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id p65so146728090wmp.1 for ; Tue, 29 Mar 2016 09:18: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:in-reply-to:references; bh=DcpsZfLL54IHsUWJ6SqyQMqGXDHCIWKnP4dW2zhFbi4=; b=00s3zEpIY1Vv/7xlGe5UGswg3irPbPpw52pt2gCAUlZIdMTlk3xr/TeTkSDJJFrcN5 Kv2xO9QPLZtqTzwu7IqV4BQ+ybBUVN+OfmfQkNWAczLm+dnoAQN+eITGrhHoRerQJkWj S8Kggi9E5g+v+8AyPzT/53di4EYhntjLGx1Ak82zDORi30JWCKcomnxgZfKw7WO5SH+h Vc/sk+mLcYr7SNhy+t7J7EjAzNTzz635c/nWOBvAUmvsbwU/tj2okDHrER9983O7OVjg NrwGH35vqM8bh6XC4Jj2RHLgjteE6lG40D5sF3K6O08Pc2la8kxJvM2OiCyb5R6x72EZ 05CQ== 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:in-reply-to :references; bh=DcpsZfLL54IHsUWJ6SqyQMqGXDHCIWKnP4dW2zhFbi4=; b=jDuZLAooXpiXB6+2n596yyWiEJcPmCofEVSqOu+3clAoVxfFh29yQZvq5h3nGpqSLZ +hdGqRxoH/NbrDyzl0Orvn9CYTZggOz8izGbpPl7mWrg9F6rq6iiuh33bnnDL11uYBpR 0AZZgWyfCkxfjgMLOYqTiatoHaasrviOCsNhDgE5nW8bCkZS5WxrI9woraplVBwNq8qx n3mLi7zRYCDb9OYuHC/JmDRbZfVibwn6EMGl2ThhyzM2d0jx0qfCHCgg9wBa78mutnoZ Nltsauz4ZdgaiEsILiUaqvEVLIEXpUEJJwXHQiizbUcqBOolFU56Qe/RoRmu9KCn5OwN H6+w== X-Gm-Message-State: AD7BkJLvRbMGWqiM5xoUWcuYz0BAba8EJudj92lEjQwZgQWwtmIM67jxDVT+dQ43KEHc2WtA X-Received: by 10.194.84.66 with SMTP id w2mr3677737wjy.6.1459268291871; Tue, 29 Mar 2016 09:18:11 -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 jf6sm30004635wjb.2.2016.03.29.09.18.10 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2016 09:18:11 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 29 Mar 2016 18:15:53 +0200 Message-Id: <1459268154-29558-8-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com> References: <1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 7/8] scripts: hook build test config 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" Insert a hook at the end of the config procedure, after having adapted the configuration to the environment variables and the options passed to the script. It allows to better tune the automatic configuration of the build tests in a function located in the devel config file. Signed-off-by: Thomas Monjalon --- scripts/test-build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/test-build.sh b/scripts/test-build.sh index bd4b501..808e8e4 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -160,6 +160,7 @@ config () # sed -ri 's,(KNI_VHOST.*=)n,\1y,' $1/.config sed -ri 's,(SCHED_.*=)n,\1y,' $1/.config sed -ri 's,(TEST_PMD_RECORD_.*=)n,\1y,' $1/.config + build_config_hook $1 $2 $3 # Explicit enabler/disabler (uppercase) for option in $(echo $3 | sed 's,[~+], &,g') ; do @@ -173,6 +174,12 @@ config () # fi } +# default empty hook to override in devel config +build_config_hook () # +{ + : +} + for conf in $configs ; do target=$(echo $conf | sed 's,[~+].*,,') # reload config with DPDK_TARGET set