From patchwork Tue Apr 14 22:53:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 6218451 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 16597BF4A6 for ; Tue, 14 Apr 2015 22:57:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 543AA20351 for ; Tue, 14 Apr 2015 22:57:49 +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 728342035D for ; Tue, 14 Apr 2015 22:57:48 +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 1Yi9jj-0000u5-6f; Tue, 14 Apr 2015 22:55:19 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yi9i3-000720-1k for linux-arm-kernel@lists.infradead.org; Tue, 14 Apr 2015 22:53:35 +0000 Received: by pacyx8 with SMTP id yx8so27755519pac.1 for ; Tue, 14 Apr 2015 15:53: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:from:to:cc:subject:date:message-id; bh=yUhkXteJDkHwwR72bJCAr+xp18fVncJuSvF3KNQhYos=; b=ct9aiz6puW1jZIjT8wh4B14Fegy1uIbuhCYXnaMWJHT+Hy2l8ZVFKwhJvYnqNSS+yT oAHf/1dPRWTnFZp2c9RZRTw/rsz1wS3sZt0f5aS1rNSoWf0WrDZc/xDxMaJJRuNQaBXX Mgv1zL2D4guQqB+YGBKSDTW2As4ZI0FB6gVrdQS78K2XV9LmwZBbZsIPxxNYU8IsnlH1 9xU8jlCU3DHfSi5ZDFjh1nm2FQ05MNEyVP0ZQ3LnZCpV0WiIYlFY+DfQfEz38AhVbQiK nwdwmyBDZH2mOZaOic72vaO8Z2HIOcN6pKwX77wSUBgpgmLD41vOlStWDTwJRgkvZpF/ Idwg== X-Gm-Message-State: ALoCoQlIHqWa+k2N44ygYThjAN7AyUv4LR8+EgT9OQR1GKR4XRzl8bTJ5ffPwB3FVrJTzlMl5S9k X-Received: by 10.70.42.139 with SMTP id o11mr32419256pdl.66.1429051994041; Tue, 14 Apr 2015 15:53:14 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id nv13sm2130429pdb.15.2015.04.14.15.53.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Apr 2015 15:53:13 -0700 (PDT) From: Tyler Baker To: Shuah Khan Subject: [PATCH 6/7] selftests/x86: install tests Date: Tue, 14 Apr 2015 15:53:09 -0700 Message-Id: <1429051989-14821-1-git-send-email-tyler.baker@linaro.org> X-Mailer: git-send-email 2.1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150414_155335_163644_7B89AB37 X-CRM114-Status: UNSURE ( 6.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Kevin Hilman , Michael Ellerman , Tyler Baker , linux-kernel@vger.kernel.org, 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 Set TEST_PROGS so that the required binaries are installed. Skip the install and test case when ARCH != x86. Signed-off-by: Tyler Baker --- tools/testing/selftests/x86/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index 7be67a0..1abe3f6 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -24,6 +24,10 @@ all_32: check_build32 $(BINARIES_32) all_64: $(BINARIES_64) +include ../lib.mk + +TEST_PROGS := $(BINARIES_32) $(BINARIES_64) run_x86_tests.sh + $(TARGETS_C_BOTHBITS:%=%_32): %_32: %.c ifeq ($(ARCH),x86) $(CC) -m32 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl @@ -52,6 +56,12 @@ check_build32: exit 1; \ fi +install: +ifneq ($(ARCH),x86) +echo "Not an x86 target, can't install x86 tests" +override EMIT_TESTS := echo "echo \"selftests: run_x86_tests.sh [SKIP]\"" +endif + run_tests: ./run_x86_tests.sh