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: 6235691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 59F33BF4A6 for ; Fri, 17 Apr 2015 22:05:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8DF7B20279 for ; Fri, 17 Apr 2015 22:05:15 +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 B258220272 for ; Fri, 17 Apr 2015 22:05:14 +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 1YjELs-0002vx-IK; Fri, 17 Apr 2015 22:03:08 +0000 Received: from mail-pd0-f178.google.com ([209.85.192.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YjELK-0002Se-Dc for linux-arm-kernel@lists.infradead.org; Fri, 17 Apr 2015 22:02:35 +0000 Received: by pdbqd1 with SMTP id qd1so140784581pdb.2 for ; Fri, 17 Apr 2015 15:02:13 -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=ifBeZ95VVGKHyrFQ3aYnSAHROHzAE3REaAe7zn6uro8=; b=JHPr9ai0MUXeSPZswvrfj9DmAHL6xsXt/GhWflAWgyDe6aVD04GvKU9QeCIESF0ZtQ dhuyJyrpxM02/+MvBNfqZkGrhFgNcC6CImZGF5TnSlE18okoXISm/cKkUqEk8RGDqVM9 yd8H0ehqDdX7WlpAMYoVSQWAvb3pINGDH0ptz/UaaLcG1Nd3Fxl0qX26PWF595s18rsO oN9g3JCxWquGWfetDjo5PdCi5KbBPGWum/FMNO/szLRwWVcxPNedviRT1XjlBpyGdcN0 glwgS+fVoi0oZU7EH8Gkiv2plTrSpnoxJcQaXH4bgo20zpj/ohIIItk/NWPIrcyYNSaR pl0g== X-Gm-Message-State: ALoCoQmM+5SGxMqRFcgAogJqKQzuN7E7rRxqlw8KIHjH/jOKce4+vxdA/7Jbgf9zTW+Wy28C48j+ 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150417_150234_558132_CF7DD620 X-CRM114-Status: UNSURE ( 6.90 ) 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 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)