From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH 7/8] scripts: hook build test config Date: Tue, 29 Mar 2016 18:15:53 +0200 Message-ID: <1459268154-29558-8-git-send-email-thomas.monjalon@6wind.com> References: <1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com> To: dev@dpdk.org Return-path: 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) 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) In-Reply-To: <1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com> 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 -- 2.7.0