From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH 4/8] scripts: stop build test after first error Date: Tue, 29 Mar 2016 18:15:50 +0200 Message-ID: <1459268154-29558-5-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-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id E7DC35677 for ; Tue, 29 Mar 2016 18:18:08 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id r72so63891927wmg.0 for ; Tue, 29 Mar 2016 09:18:08 -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.07 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2016 09:18:08 -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" Signed-off-by: Thomas Monjalon --- scripts/test-build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/test-build.sh b/scripts/test-build.sh index ffad7ee..ffa7bea 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -64,6 +64,7 @@ print_help () { J=$DPDK_MAKE_JOBS short=false +maxerr=-Wfatal-errors while getopts hj:s ARG ; do case $ARG in j ) J=$OPTARG ;; @@ -146,7 +147,7 @@ for conf in $configs ; do config $dir $target $options echo "================== Build $dir" - make -j$J EXTRA_CFLAGS="$DPDK_DEP_CFLAGS" \ + make -j$J EXTRA_CFLAGS="$maxerr $DPDK_DEP_CFLAGS" \ EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" O=$dir ! $short || break echo "================== Build examples for $dir" -- 2.7.0