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: 47378 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DCDB52121F for ; Mon, 20 Apr 2015 23:14:42 +0000 (UTC) Received: by labgx2 with SMTP id gx2sf42798600lab.1 for ; Mon, 20 Apr 2015 16:14:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Fen/w9laHfUMsJHi2evZtB5UTH/BQeItSeK7xhfqZwI=; b=Xezcb3aSco+ieVWgwOjhFdd2gnALSWleMdAKLwXYhhqf/STnVFrRPkRWBjy8J+navO k0YqMmCx+ZUB7ytknZwiXQ4Cq/mjeLafjQ9coeGhsRsZYK051pt1sU/Bh5wiPFuE2i2J WwtOg3BvqViOD7GCcol+Fzx57AunY1fCSbzLBVrVquToGJ+RgK1pfJ8tgdFQgobsgIuX B5AAK9kerInDuoTJWiBexC+NQhv4VJEDmUw8CJm1dHJcAoIb3wI7qfXxa4AckFM5b+CI OxzWUaOIOdK6wYnuvPA7ymeFwCw7YJAfRAlpwY3uZxE7kUXG7Rsy9r8TCY6tesstuygx oYYg== X-Gm-Message-State: ALoCoQlS7iLdRIo8RPqb55EKRap1E1olog/KJXZV17391q7xt5zPp/7Dxsm/KM7+0LEfwsb8IPdH X-Received: by 10.152.88.73 with SMTP id be9mr8045711lab.2.1429571681586; Mon, 20 Apr 2015 16:14:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.104 with SMTP id j8ls730363laj.106.gmail; Mon, 20 Apr 2015 16:14:41 -0700 (PDT) X-Received: by 10.152.25.167 with SMTP id d7mr7067871lag.108.1429571681412; Mon, 20 Apr 2015 16:14:41 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id o10si43901laj.121.2015.04.20.16.14.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 16:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbbuc2 with SMTP id uc2so142615981lbb.2 for ; Mon, 20 Apr 2015 16:14:41 -0700 (PDT) X-Received: by 10.112.16.196 with SMTP id i4mr17350707lbd.72.1429571680991; Mon, 20 Apr 2015 16:14:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp297488lbt; Mon, 20 Apr 2015 16:14:40 -0700 (PDT) X-Received: by 10.66.242.79 with SMTP id wo15mr32687663pac.6.1429571678984; Mon, 20 Apr 2015 16:14:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si94785pdn.147.2015.04.20.16.14.34; Mon, 20 Apr 2015 16:14:38 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754524AbbDTXOa (ORCPT + 26 others); Mon, 20 Apr 2015 19:14:30 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:33242 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752224AbbDTXO1 (ORCPT ); Mon, 20 Apr 2015 19:14:27 -0400 Received: by paboj16 with SMTP id oj16so221443547pab.0 for ; Mon, 20 Apr 2015 16:14:27 -0700 (PDT) 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 Cc: Kevin Hilman , John Stultz , Darren Hart , David Herrmann , Michael Ellerman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tyler Baker 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tyler.baker@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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