From patchwork Fri Jan 16 23:15:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 430025 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 809F214014D for ; Sat, 17 Jan 2015 10:16:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8CC674B6B5; Sat, 17 Jan 2015 00:16:23 +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 w10Wcpk8dT2X; Sat, 17 Jan 2015 00:16:23 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 275144B65F; Sat, 17 Jan 2015 00:16:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A1DA44B628 for ; Sat, 17 Jan 2015 00:16:06 +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 TgvoLfAAI3SK for ; Sat, 17 Jan 2015 00:16:06 +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 3F01C4B61A for ; Sat, 17 Jan 2015 00:16:03 +0100 (CET) Received: by mail-ig0-f201.google.com with SMTP id h15so862505igd.0 for ; Fri, 16 Jan 2015 15:16:02 -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=KN8PCBVALLJONM4Mz79AuTvNKitmAbYH/M4upjdAGks=; b=PtOG8EfEESyw6oka8o6fYknf0L+4m4klfJ8607qwOm/8de58Fe9zaU09pj29griSzN BbFydbBoEYsSApzvf/YPOjnJUdWxEodyt0fBIHxT6UJVYKW20OXvKYw9hRvn0fGzL0Cg nCZSlAk0lPW1uI2d4NKuYTLgYbcYZvJwTsmICyDT0wgSsepr19k0S1Yl2f38f+VvEcyp YekWziCvMsGWiqJI2+MtgCc+XL8zPSmyEChrk5cljoSxNOZfwT7jkumgcQ1ONT740Y2L ND991bySMhcFFVd3bItIkxh41yCJTwnbhmPDa9Zty9sRDLkSB4vEz/s2afq7VQrnSg7I hyNA== X-Gm-Message-State: ALoCoQlWv2Ss+JDJiQBpMOaqUUBYKKfPWWYbxEEYoBMA3JXZImRyVaiUaDhMKx4PKluH3Vdp1qXn X-Received: by 10.50.57.47 with SMTP id f15mr4422285igq.1.1421450161809; Fri, 16 Jan 2015 15:16:01 -0800 (PST) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id e4si732178qcq.3.2015.01.16.15.16.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jan 2015 15:16:01 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id m08D3mJL.1; Fri, 16 Jan 2015 15:16:01 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 23353221571; Fri, 16 Jan 2015 16:16:01 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Fri, 16 Jan 2015 16:15:23 -0700 Message-Id: <1421450143-22442-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1421450143-22442-1-git-send-email-sjg@chromium.org> References: <1421450143-22442-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [RFC PATCH 01/21] 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 --- 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