From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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: , X-List-Received-Date: Tue, 29 Mar 2016 16:18:12 -0000 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