From patchwork Sun Jan 25 15:26:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 432535 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id BF1531401D0 for ; Mon, 26 Jan 2015 02:28:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8CB6E4B819; Sun, 25 Jan 2015 16:28:12 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 60qE--fzakO8; Sun, 25 Jan 2015 16:28:12 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 803634B7DD; Sun, 25 Jan 2015 16:28:03 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0C4714B7BA for ; Sun, 25 Jan 2015 16:27:53 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tyYEV4eOn-nM for ; Sun, 25 Jan 2015 16:27:52 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ig0-f201.google.com (mail-ig0-f201.google.com [209.85.213.201]) by theia.denx.de (Postfix) with ESMTPS id 9C4394B78B for ; Sun, 25 Jan 2015 16:27:49 +0100 (CET) Received: by mail-ig0-f201.google.com with SMTP id b16so650547igk.0 for ; Sun, 25 Jan 2015 07:27:48 -0800 (PST) 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=s622G2oAC4Ds3tMXD3rIuWjONToXIQABHU13ky23MVY=; b=bMJXcglALtiqiBmk1dCI+ZmbEp4sabAwGKWmyX+usR53/zyFb1x6KzpAXGyUFkzmp3 nKyY46PT2Ll9XAFiKWtJsllO2hSihztJU64t80+Rd8WXgI/K1nrXy7BDwSMx4ltkYFtd ufjssaHBMCSlfkI/1jSYZ9rts0QC40XzCnfBtSsXqJqBMh1AycpsrteEz8tJzbd31q0L qh/RmtNRnJofgESH87apwz7t9GUT3pX7f9iap6JKSvqCjbjNrB7HNcpAuNs8DJnj5qok C1TO5O20ddQy43PjjsNzbvqxIfQem6svNfL7jQw/9Xwfe5jvrHjtjPiXp4nRclclVJmn 1jiA== X-Gm-Message-State: ALoCoQktNIkJtYVDs2zaCw0STmbKxvm0Ag/i7PHZfzPtwV61MWXNl6vAGjsmCfZ86jln7QOjQPdc X-Received: by 10.42.62.203 with SMTP id z11mr15172375ich.9.1422199668288; Sun, 25 Jan 2015 07:27:48 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id 3si214464yhe.0.2015.01.25.07.27.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Jan 2015 07:27:48 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id EvU116et.1; Sun, 25 Jan 2015 07:27:48 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 937AA2204D5; Sun, 25 Jan 2015 08:27:47 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Sun, 25 Jan 2015 08:26:56 -0700 Message-Id: <1422199640-25811-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1422199640-25811-1-git-send-email-sjg@chromium.org> References: <1422199640-25811-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v3 02/26] dm: Don't run tests if U-Boot cannot be built X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de There is no point in running the tests if U-Boot cannot be built. Abort in this case. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/test-dm.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/dm/test-dm.sh b/test/dm/test-dm.sh index bb99677..8ebc392 100755 --- a/test/dm/test-dm.sh +++ b/test/dm/test-dm.sh @@ -1,9 +1,14 @@ #!/bin/sh +die() { + echo $1 + exit 1 +} + NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor) dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb -make O=sandbox sandbox_config -make O=sandbox -s -j${NUM_CPUS} +make O=sandbox sandbox_config || die "Cannot configure U-Boot" +make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot" dd if=/dev/zero of=spi.bin bs=1M count=2 ./sandbox/u-boot -d test/dm/test.dtb -c "dm test" rm spi.bin