From patchwork Mon Apr 20 23:15:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 47382 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 898C82121F for ; Mon, 20 Apr 2015 23:16:15 +0000 (UTC) Received: by lbdc7 with SMTP id c7sf40846316lbd.2 for ; Mon, 20 Apr 2015 16:16:14 -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=5tdFNkCk0/bsCm5XfFYR4a8J8als0aGDmObpBNnmb7U=; b=ff6gJehukymkTOB5+LDozdWgehoGI5YIfXw1BRotzTxPBghJQ21oIMBTRi0YAtP5u0 lBPNwWH4B7TwH6nzJGW7Qnci+AO6SlGv+75YwrwYcF3GXsQ621xCIZ4VJLR8jUMZgTUz mRwhc1JpX6AYwJWJmd9HoaEunrwTJuCl4uCtOHtblUQN28ken2AiCh1sN8h3dlQUGrxK c/UCQJ0uukvcELJBTTEF27HmQjCXy9TC/U70NZiThOoai0306GGvrYV8fhwX94f+lFMO NvRoG9AbiBSMnR4yBRlo2v1ix9G0PUH49jYMcMXMOpLh1Ba9UobIN3f9ZxyjOJ5uqhJC sOjg== X-Gm-Message-State: ALoCoQnWE5qpFIihbj3/FnR9wscMWHFp1O+q63HGMLH7sQxRAhk6V/1CkcceCeFVRnDJH6q1aCMC X-Received: by 10.112.138.2 with SMTP id qm2mr7911276lbb.19.1429571774469; Mon, 20 Apr 2015 16:16:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.101 with SMTP id z5ls895403laz.12.gmail; Mon, 20 Apr 2015 16:16:14 -0700 (PDT) X-Received: by 10.152.9.66 with SMTP id x2mr5055649laa.36.1429571774176; Mon, 20 Apr 2015 16:16:14 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id lk5si37567lac.170.2015.04.20.16.16.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 16:16:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by layy10 with SMTP id y10so138560732lay.0 for ; Mon, 20 Apr 2015 16:16:13 -0700 (PDT) X-Received: by 10.152.4.137 with SMTP id k9mr5962774lak.29.1429571773901; Mon, 20 Apr 2015 16:16:13 -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 l1csp298033lbt; Mon, 20 Apr 2015 16:16:13 -0700 (PDT) X-Received: by 10.66.232.134 with SMTP id to6mr31389236pac.96.1429571772006; Mon, 20 Apr 2015 16:16:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si116341pdm.86.2015.04.20.16.16.11; Mon, 20 Apr 2015 16:16:11 -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 S1754725AbbDTXQH (ORCPT + 26 others); Mon, 20 Apr 2015 19:16:07 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:35788 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754609AbbDTXQE (ORCPT ); Mon, 20 Apr 2015 19:16:04 -0400 Received: by pdbqd1 with SMTP id qd1so222464131pdb.2 for ; Mon, 20 Apr 2015 16:16:04 -0700 (PDT) X-Received: by 10.68.202.66 with SMTP id kg2mr32417553pbc.19.1429571764165; Mon, 20 Apr 2015 16:16:04 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id l14sm36922pdn.96.2015.04.20.16.16.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Apr 2015 16:16:03 -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 v3 7/8] selftest/x86: install tests Date: Mon, 20 Apr 2015 16:15:58 -0700 Message-Id: <1429571758-28009-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.49 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 a5ca38b..d539b44 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -14,19 +14,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_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)