From patchwork Fri Apr 17 22:02:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 47301 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7700E20553 for ; Fri, 17 Apr 2015 22:02:22 +0000 (UTC) Received: by wgtl5 with SMTP id l5sf27204535wgt.1 for ; Fri, 17 Apr 2015 15:02:21 -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=2N+lo2rPp8SWEzq1yH/rNIMqyK8OYk5TGBfGeeAlEKY=; b=FTNRFsQXqojeXRQL8IZpympiy+kTamqoHiJtRbEpF/44Wm6iZnt99Nph/qxIygpQKm LgBXqWgxWiAulT/TiQHJy/Z6yEx40tMn2MOuKWDjyutV10EsN89hDRVaz9cJHDQnTwgO qZytrJxFxrOUlu9TzfWMjGOMviF9VHvPKOr/Jkow3AyiF8DqnSlDtYsTGpVbiB5BpVaa 8ZpeDnL0Sd9zBeF1jtxi7uZU8aUMsA5VnvfXdhukEvhtSoOPdnsRS2aEHlix7SsIqakv FsqEivYlGY3RZhuVj9KUwIB3ViqGq5g9mOX2OFACQStGDVPE7AT+4j5pmn46rS2KlvnU lG2g== X-Gm-Message-State: ALoCoQlfRKqGHGt6x0UypYdIUQgS3ReH99WScIfOFYdX1UDZbdRe2ITJYFq6KEls0MDTW6tfCmty X-Received: by 10.180.10.136 with SMTP id i8mr1224080wib.7.1429308141773; Fri, 17 Apr 2015 15:02:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.67 with SMTP id da3ls682654lad.49.gmail; Fri, 17 Apr 2015 15:02:21 -0700 (PDT) X-Received: by 10.112.125.138 with SMTP id mq10mr6176355lbb.35.1429308141522; Fri, 17 Apr 2015 15:02:21 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id qf3si9666817lbb.143.2015.04.17.15.02.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 15:02:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by laat2 with SMTP id t2so90254543laa.1 for ; Fri, 17 Apr 2015 15:02:21 -0700 (PDT) X-Received: by 10.152.87.204 with SMTP id ba12mr6171952lab.35.1429308141430; Fri, 17 Apr 2015 15:02:21 -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 l1csp230563lbt; Fri, 17 Apr 2015 15:02:20 -0700 (PDT) X-Received: by 10.66.55.68 with SMTP id q4mr8967170pap.71.1429308139744; Fri, 17 Apr 2015 15:02:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gy10si4572844pbd.142.2015.04.17.15.02.18; Fri, 17 Apr 2015 15:02:19 -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 S932372AbbDQWCP (ORCPT + 27 others); Fri, 17 Apr 2015 18:02:15 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:33419 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932320AbbDQWCN (ORCPT ); Fri, 17 Apr 2015 18:02:13 -0400 Received: by pdbnk13 with SMTP id nk13so140715124pdb.0 for ; Fri, 17 Apr 2015 15:02:13 -0700 (PDT) X-Received: by 10.68.179.225 with SMTP id dj1mr9151596pbc.0.1429308133099; Fri, 17 Apr 2015 15:02:13 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id eh4sm11014877pbd.69.2015.04.17.15.02.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Apr 2015 15:02:12 -0700 (PDT) From: Tyler Baker To: Shuah Khan Cc: Andy Lutomirski , 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 7/8] selftest/x86: install tests Date: Fri, 17 Apr 2015 15:02:06 -0700 Message-Id: <1429308126-5591-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.215.48 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: , Include lib.mk and set TEST_PROGS where appropriate. Skip the install and test case when CROSS_COMPILE is not set. Cc: Andy Lutomirski Signed-off-by: Tyler Baker --- tools/testing/selftests/x86/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index 9962e10..622717e 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -12,19 +12,28 @@ UNAME_M := $(shell uname -m) ifeq ($(CROSS_COMPILE),) # Always build 32-bit tests all: all_32 +# Install 32-bit tests +TEST_PROGS += $(BINARIES_32) run_x86_tests.sh # If we're on a 64-bit host, build 64-bit tests as well ifeq ($(UNAME_M),x86_64) all: all_32 all_64 +# Install 64-bit tests +TEST_PROGS += $(BINARIES_64) endif else # No dependency on all when cross building all: +# Skip install and test case when not built +override INSTALL_RULE := +override EMIT_TESTS := echo "echo \"selftests: run_x86_tests.sh [SKIP]\"" endif all_32: check_build32 $(BINARIES_32) all_64: $(BINARIES_64) +include ../lib.mk + clean: $(RM) $(BINARIES_32) $(BINARIES_64)