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: 47297 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CC33B20553 for ; Fri, 17 Apr 2015 21:59:30 +0000 (UTC) Received: by wgiv13 with SMTP id v13sf26702008wgi.3 for ; Fri, 17 Apr 2015 14:59:30 -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=/03lVtI4KYYtr4bA4Ic6AMjBjqaOncwLo5umB4Qe3UE=; b=H4ZIREkjtbtEkFvGO6dmdjrk2WOWKeuwozz8wl/bKhcI5tZ3dmh5G1mV+rMa6iCsMi eZJQOCyeicl3GXFZ6ajMqUaajAWrnkcxzpDgeX/3fqXTqAQsP/sz1p7R4q27Bo//lIFm 3dWzDk9nR7snJmy+sNSUl/EtBuXkS1LgIyzgxKZVLMUGCBYTlUVhTg17tH/x4yOXm8Ui cwSh6SP31nrSPUveicpBJ6PvG+JSGUvaAo4XQCOfo9wOLwhS4CbdZIR15jIZ3zQrTvFC SRfU73nhqH87W10ybU3nmysxdiUogm3ML1sqhZ0MI3/V+JU5aL+h2kuXQnD/Fxc/tzpG lpsg== X-Gm-Message-State: ALoCoQkXZr+xyScPdWNxV4CUBD8D2BdU8gkVR7NdrW82Ql9WAv7oimNLDyzV8UgqPcURL5VyjPfm X-Received: by 10.194.178.67 with SMTP id cw3mr2387993wjc.2.1429307970140; Fri, 17 Apr 2015 14:59:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.81 with SMTP id v17ls670810laz.2.gmail; Fri, 17 Apr 2015 14:59:29 -0700 (PDT) X-Received: by 10.112.90.201 with SMTP id by9mr5984518lbb.30.1429307969876; Fri, 17 Apr 2015 14:59:29 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id am2si9663135lac.130.2015.04.17.14.59.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 14:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbcga7 with SMTP id ga7so93266270lbc.1 for ; Fri, 17 Apr 2015 14:59:29 -0700 (PDT) X-Received: by 10.152.36.2 with SMTP id m2mr5978775laj.72.1429307969743; Fri, 17 Apr 2015 14:59:29 -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 l1csp229443lbt; Fri, 17 Apr 2015 14:59:29 -0700 (PDT) X-Received: by 10.66.145.2 with SMTP id sq2mr8995333pab.124.1429307968050; Fri, 17 Apr 2015 14:59:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yo1si18358255pac.65.2015.04.17.14.59.26; Fri, 17 Apr 2015 14:59:28 -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 S932182AbbDQV7X (ORCPT + 27 others); Fri, 17 Apr 2015 17:59:23 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34549 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932074AbbDQV7U (ORCPT ); Fri, 17 Apr 2015 17:59:20 -0400 Received: by pacyx8 with SMTP id yx8so137983017pac.1 for ; Fri, 17 Apr 2015 14:59:19 -0700 (PDT) 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 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 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 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.170 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. 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