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: 6244811 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 3FAFD9F1C4 for ; Mon, 20 Apr 2015 23:20:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B6BC20421 for ; Mon, 20 Apr 2015 23:20:01 +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 68CF9201CE for ; Mon, 20 Apr 2015 23:20:00 +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 1YkKwJ-0003gM-H0; Mon, 20 Apr 2015 23:17:19 +0000 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YkKvS-00032s-2n for linux-arm-kernel@lists.infradead.org; Mon, 20 Apr 2015 23:16:27 +0000 Received: by pabtp1 with SMTP id tp1so221399769pab.2 for ; Mon, 20 Apr 2015 16:16:04 -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=0gB8YzA9RusnEsIVSHRVjP7m/0kBNnLUAwMQSb3PwRI=; b=UtQXuUhlp+8V5rS+sILzjrdAGFkOvetn2fGjKObgLQhAeR0oNuI1YHrWhJvKdjMOKm XtsvS/Y0Fvm/+9CHDXzAMWHxsI8zT4din1YThPvjGrrGJAjbbHVR3TmBGFCLAX2YYd9y +Dmw+Q+TF/cM0M043KrI2gN5kYz1kLRYWvEGmNAC1vL3Sga5oLXSvUqu8Yuo8J3aXpRe XRUNjQjcC+S8Pn4JSICNwinp+rUYK02anBwwEQzNMerXWUU8z+sDvB3lnDBq7u00CGrE AIC3p+Jl3zSFoKq9yQaZCAqr5Yy1SF/qntQkEUAQn7HLZThgylC9GuNzOGYl3UmmtIYw 3ciw== X-Gm-Message-State: ALoCoQmleMN18klR3sVZZD+RvwUsP0RjV1WpmMTVdU3crxmKdH1TyRLu7vb6zHTUFBblk53Ub/sC 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150420_161626_219152_7454D770 X-CRM114-Status: UNSURE ( 7.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Kevin Hilman , Michael Ellerman , Tyler Baker , linux-kernel@vger.kernel.org, Andy Lutomirski , 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 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)