From patchwork Tue Apr 14 22:51:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 6218421 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 0136F9F1C4 for ; Tue, 14 Apr 2015 22:55:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33FDE20351 for ; Tue, 14 Apr 2015 22:55:03 +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 5BAA72034F for ; Tue, 14 Apr 2015 22:55:02 +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 1Yi9gr-0006X1-GR; Tue, 14 Apr 2015 22:52:21 +0000 Received: from mail-pd0-f178.google.com ([209.85.192.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yi9gX-0006HT-9r for linux-arm-kernel@lists.infradead.org; Tue, 14 Apr 2015 22:52:01 +0000 Received: by pdea3 with SMTP id a3so28522448pde.3 for ; Tue, 14 Apr 2015 15:51:39 -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=a3eCTFwy+AjVxmFU614Flq6tUNeXL0CFPvfz0ZpFs1Y=; b=eua6nbq/aqDFYSYXUGk145wR14xwPMIsbXfsx/9FlvZi3pQDAZbbfmSSfz6TlX0hTc dgcYkIwwrh6B/JKdx3bpV5B2N7+W/48Z+P6eFKRGULvK2IgfRPHBjCZR0tHrQPg6cxUb FM6VF8Hr7fMPg4cLFgf80HTkR0SVJacuBLQI6pnHfy91s5SyQGS2d9u6sTuDDNDSOuAT OUSY+tcH14FBLJJiieHFBpSlDH6faBuo1tpjETL2NQtLNOdmFzDtnm7VShzm6iSEOFVE zudVi4fMNKhNUejAGPIT+z43mkSO4C6UmDz1mXIYkLqgBC0lc/f6IBpNB0yxF+c4R6ne FI5Q== X-Gm-Message-State: ALoCoQlJ9QRG5FUyoTKP+Dz0lSlBwEpaeMfAIziV3zJbv1GztCZHj7FmJybC5G+Jgt3awh0VvmpF X-Received: by 10.66.251.165 with SMTP id zl5mr40265316pac.93.1429051899800; Tue, 14 Apr 2015 15:51:39 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id cj2sm2127398pbb.10.2015.04.14.15.51.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Apr 2015 15:51:39 -0700 (PDT) From: Tyler Baker To: Shuah Khan Subject: [PATCH 3/7] selftests/breakpoints: emit skip and omit installation when tests are not compiled Date: Tue, 14 Apr 2015 15:51:34 -0700 Message-Id: <1429051894-14687-1-git-send-email-tyler.baker@linaro.org> X-Mailer: git-send-email 2.1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150414_155201_389251_5BC74D75 X-CRM114-Status: UNSURE ( 7.02 ) 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