From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 0AC4A8E81 for ; Sun, 13 Dec 2015 03:05:08 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id n186so76780611wmn.1 for ; Sat, 12 Dec 2015 18:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3byc33KPx3rI0LHhfniVQtlv7W1LeIZIS0ft51y4G6s=; b=uVpduqLiqHqVUzje0U3ASFLgrIEDaunCVucz3OaeBZo4HM2S50SynR3RvrkJdQcpsT jUPEKG8CNXiBc0werQyZTrd6hYV+YAk2JauY2L9uvg99tn0u4RY7AQNqtZYUjidnITL5 1xUWxD31AmQEjkzp4aKGu6HDzOvE5RbnmXGV2j8lrf1gwwzkS/v104tcGDLH3UKWo5nC GEAfUdy1mAXuKbXAav2WJeMXZXWMKIrj968MMe3avF+28++vCrWD5T876kAOnTSNw0VN SfhnYdt8wgn607lk/23fSlqFNiqt908Mo+7zYe0U810+hN/4EToAIVpYFDJhUIRIM9b6 H7aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3byc33KPx3rI0LHhfniVQtlv7W1LeIZIS0ft51y4G6s=; b=lci6FVvuXRPaT/S1niZ6yYLbmv/gvPazVSuSFQ5iRxAMe2+LQzf6LgYgCuymnwmv6f YP648wQmfdyWxHMxRlM4ff2Hut91ugW+B6TTZcbheCiuAVrQbxL3g4Cuaj1aaVrxZ30z 0z0lVyr/WcT/khoP+wKRzo95hvfET4Nmi/KFVRCVlRHPRKjbJoxrKOuWnHKfMVkFQPNr QqQs9zZxUYF4Q53W6X72dvKeXe1N9hkZpeJqSIyd5q62haMjYh9fht0GpSB0fFsy3Xes Bn4HByMolTbAGKoZPcnyyR2Ilin+g5pcBq7A0ta7tZcysTMKrEzmseebXe1bS1aCelcf jrHQ== X-Gm-Message-State: ALoCoQnrxkoIwhp6zBZkdqy70UavTB+ctmoeZxfdubMN642NhGBi/1j1TDLQMvMInHaJEsIS4MMkWiD9fOd3ELrfgSMDAnGbEA== X-Received: by 10.194.171.97 with SMTP id at1mr29119545wjc.39.1449972307857; Sat, 12 Dec 2015 18:05:07 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id z1sm23297305wje.35.2015.12.12.18.05.06 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 Dec 2015 18:05:06 -0800 (PST) From: Thomas Monjalon To: keith.wiles@intel.com Date: Sun, 13 Dec 2015 03:03:46 +0100 Message-Id: <1449972226-30790-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.5.2 In-Reply-To: <4975020.B35JWah5pV@xps13> References: <4975020.B35JWah5pV@xps13> Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH] scripts: add help for build testing 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: Sun, 13 Dec 2015 02:05:08 -0000 Signed-off-by: Thomas Monjalon --- scripts/test-build.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/scripts/test-build.sh b/scripts/test-build.sh index 6e67c8f..a9075af 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -40,7 +40,25 @@ . scripts/load-devel-config.sh print_usage () { - echo "usage: $(basename $0) [-jX] [-s] [config1 [config2] ...]]" + echo "usage: $(basename $0) [-h] [-jX] [-s] [config1 [config2] ...]]" +} + +print_help () { + echo 'Test building several targets with different options' + echo + print_usage + cat <<- END_OF_HELP + + options: + -h this help + -jX use X parallel jobs in "make" + -s short test with only first config without examples/doc + + config: + default config name + config switches delimited with "+" sign + example: x86_64-native-linuxapp-gcc+next+shared+combined + external dependencies defined with DPDK_DEP_* variables + END_OF_HELP } J=$DPDK_MAKE_JOBS @@ -49,7 +67,7 @@ while getopts hj:s ARG ; do case $ARG in j ) J=$OPTARG ;; s ) short=true ;; - h ) print_usage ; exit 0 ;; + h ) print_help ; exit 0 ;; ? ) print_usage ; exit 1 ;; esac done -- 2.5.2