From patchwork Fri Apr 17 21:59:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 6235591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7E90E9F1BE for ; Fri, 17 Apr 2015 22:01:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C216A20279 for ; Fri, 17 Apr 2015 22:01:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F1AF120272 for ; Fri, 17 Apr 2015 22:01:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YjEId-0008UH-RC; Fri, 17 Apr 2015 21:59:47 +0000 Received: from mail-pa0-f51.google.com ([209.85.220.51]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YjEIW-0008L6-Ub for linux-arm-kernel@lists.infradead.org; Fri, 17 Apr 2015 21:59:41 +0000 Received: by pabsx10 with SMTP id sx10so137995436pab.3 for ; Fri, 17 Apr 2015 14:59:19 -0700 (PDT) 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; bh=pNqX0Ji5dywae2E0kLPu+FDQOELew2y+rLhFZ6qiVgU=; b=RqzgPFHgVP4/hKBJvJ8K1Db3GcYFZVpOnixd3TEi6H1GfjXEOTaW18vQ3gkEwGiI30 QCsB5M2sLf7MFnerKl+43TTL88DdKbaTCxBDPqtbOAdLRc5x74h+6Mr64qKNHtQvwJ6D FTGkTCKnT7aJb0GNwIJQawS1233lYs6+FB/2OlpHnijDmb/wLjIsYw0OR4wHqlu+GeDS fdtnm3f3u7Yhzq6MuT0lhIAw442p+OuiGoVmZsqcT/s2KbB1IpEhi4W1R790h8dUlAzR pYUt94JKY7aOMGBgPKnirUX0bd9u+6VVlAGdazsyF8BhUJVWCqVx/GqfVpaNBzSC77jS Xemw== X-Gm-Message-State: ALoCoQklAwr2s0SbwC34ORWf/3UO5gI9Diwusj2cqj6DeefDuthMFgK6Wg48qhzm1poYaQ1qbTtW X-Received: by 10.70.38.195 with SMTP id i3mr9113116pdk.82.1429307959639; Fri, 17 Apr 2015 14:59:19 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id z10sm11119198pas.18.2015.04.17.14.59.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Apr 2015 14:59:19 -0700 (PDT) From: Tyler Baker To: Shuah Khan Subject: [PATCH v2 3/8] selftests/breakpoints: emit skip and omit installation when tests are not compiled Date: Fri, 17 Apr 2015 14:59:13 -0700 Message-Id: <1429307953-1419-1-git-send-email-tyler.baker@linaro.org> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150417_145941_061352_2A704C0B X-CRM114-Status: UNSURE ( 6.73 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Kevin Hilman , Michael Ellerman , Tyler Baker , linux-kernel@vger.kernel.org, John Stultz , David Herrmann , Darren Hart , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The breakpoints test should only should be executed on x86 targets, so lets emit a skip and omit the installation when ARCH != x86. Signed-off-by: Tyler Baker --- tools/testing/selftests/breakpoints/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/breakpoints/Makefile b/tools/testing/selftests/breakpoints/Makefile index 1822356..430b76d 100644 --- a/tools/testing/selftests/breakpoints/Makefile +++ b/tools/testing/selftests/breakpoints/Makefile @@ -8,7 +8,6 @@ ifeq ($(ARCH),x86_64) ARCH := x86 endif - all: ifeq ($(ARCH),x86) gcc breakpoint_test.c -o breakpoint_test @@ -20,5 +19,11 @@ TEST_PROGS := breakpoint_test include ../lib.mk +install: +ifneq ($(ARCH),x86) +echo "Not an x86 target, can't install breakpoints selftests" +override EMIT_TESTS := echo "echo \"selftests: breakpoint_test [SKIP]\"" +endif + clean: rm -fr breakpoint_test