From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH] scripts: print failed directory when testing build Date: Fri, 15 Jul 2016 15:55:03 +0200 Message-ID: <1468590903-16363-1-git-send-email-thomas.monjalon@6wind.com> To: dev@dpdk.org Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 0BF195595 for ; Fri, 15 Jul 2016 15:55:24 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id i5so31104861wmg.0 for ; Fri, 15 Jul 2016 06:55:24 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id bd8sm886862wjb.40.2016.07.15.06.55.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jul 2016 06:55:22 -0700 (PDT) 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" The script test-build.sh can be used to test building several targets with different configurations. The directory name reflects the target and the customized configuration. When there is a failure, it is convenient to print this build directory to quickly know which case is failing without scrolling the build log history. Signed-off-by: Thomas Monjalon --- scripts/test-build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/test-build.sh b/scripts/test-build.sh index 30dfdf5..d2cafc1 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -96,12 +96,13 @@ configs=${*:-$DPDK_BUILD_TEST_CONFIGS} success=false on_exit () { - if [ "$DPDK_NOTIFY" = notify-send ] ; then - if $success ; then + if $success ; then + [ "$DPDK_NOTIFY" != notify-send ] || \ notify-send -u low --icon=dialog-information 'DPDK build' 'finished' - elif [ -z "$signal" ] ; then + elif [ -z "$signal" ] ; then + [ -z "$dir" ] || echo "failed to build $dir" >&2 + [ "$DPDK_NOTIFY" != notify-send ] || \ notify-send -u low --icon=dialog-error 'DPDK build' 'failed' - fi fi } # catch manual interrupt to ignore notification @@ -232,6 +233,7 @@ for conf in $configs ; do O=$(readlink -m $dir/examples/performance-thread) unset RTE_TARGET echo "################## $dir done." + unset dir done if ! $short ; then -- 2.7.0