From patchwork Mon Apr 20 23:14:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 6244771 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 050569F1C4 for ; Mon, 20 Apr 2015 23:17:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E5DC20429 for ; Mon, 20 Apr 2015 23:17:34 +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 21ABB201CE for ; Mon, 20 Apr 2015 23:17:33 +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 1YkKu4-0001K8-Np; Mon, 20 Apr 2015 23:15:00 +0000 Received: from mail-pd0-f172.google.com ([209.85.192.172]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YkKtt-00016q-Fr for linux-arm-kernel@lists.infradead.org; Mon, 20 Apr 2015 23:14:50 +0000 Received: by pdbnk13 with SMTP id nk13so222164674pdb.0 for ; Mon, 20 Apr 2015 16:14:27 -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=0F6TYOC23svSolGEnZHkvS5CmEhDtwDGV1qUyMqvM+A=; b=BZkkfKxGnLylgGqKfZThEEhFcZZpVr2yAqT93IeYbwpAw0WsEuIA8FZo/BsD1wcWB2 HdIv8H6i7d75NBQ4BVcatYpiEMiexuLMr3cuAX2womHDFrYOXRQkYin1NER4/7t9MKiw RH+NFlhEd+e56pGv33rv0RnKeDbvHdM229CYIUFuYUoQODlth0m3RFBNuK+8nlfOFa5a 6IPgOXm8GhPzGm042wvKt2/RpU1AgIj2gQFghXzcRPkuzQasrN7CjdKxrWEN34AkpZKL jq+tkqcrIe1a1/OhRWiZ3Lg1clMW5AzM1eqNMxw7uVVMX5yBDTRbvSJ/Hb6etSC4dszq u9ng== X-Gm-Message-State: ALoCoQkjKEwYD+joOJAwicqo4HepMHpZjuU3f8aFio0lcDzyW4CsCpxT/5VFuLht9TspeqKWqhs8 X-Received: by 10.70.131.33 with SMTP id oj1mr31854277pdb.3.1429571667091; Mon, 20 Apr 2015 16:14:27 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id a5sm45706pdk.58.2015.04.20.16.14.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Apr 2015 16:14:26 -0700 (PDT) From: Tyler Baker To: Shuah Khan Subject: [PATCH v3 3/8] selftests/breakpoints: emit skip and omit installation when tests are not compiled Date: Mon, 20 Apr 2015 16:14:21 -0700 Message-Id: <1429571661-26337-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-20150420_161449_625282_16BBC6BE X-CRM114-Status: UNSURE ( 7.30 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.0 (-) 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. Acked-by: Michael Ellerman 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