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: 47158 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 156BB2121F for ; Tue, 14 Apr 2015 22:53:38 +0000 (UTC) Received: by layy10 with SMTP id y10sf5867666lay.0 for ; Tue, 14 Apr 2015 15:53:37 -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=jYWTCvW1TsuvTfj+4M2elpo+A+Ra/jUlnChpkI0FVNI=; b=CrBoZcajIj1m4gGcEkUgdQXcddgBd8uCCvgobM1/tT1UCFDv6dGaUtJ6lCfqXaFHY7 PrZGH3OZfyNLSSIT2m5hwasOb62r3NA+N9MxXvbmCA6l0/GAGrrWxtpm6uY9BTfXy5PM A/PVFjC4R6ImOsU73mlHNTa59CqqbLO6ILU5VL8aoD9s/q1IoH7s91Sl7M9ceA5UBRbN XqNaGICMemxRsMqFPV4ksapUXjS8VV1yS6U8dxNY+Oqdly2iKbuX9PqgWHwqgH7FDKir 8mrRST2PjrjKzhe1vKZy6K3OfrTvgNA7VJs36HlRWiwn/BTxdefzsz7i0nV9SQ90oNCe LImg== X-Gm-Message-State: ALoCoQng7u6X2bZODaKqFFsIhlCQSPntHk8AyA9PMqYd7WgC10NfInBoRSZMROUNN21hqNNqiJky X-Received: by 10.180.97.9 with SMTP id dw9mr3324564wib.2.1429052017030; Tue, 14 Apr 2015 15:53:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.10.5 with SMTP id e5ls105764lab.37.gmail; Tue, 14 Apr 2015 15:53:36 -0700 (PDT) X-Received: by 10.112.205.225 with SMTP id lj1mr11716932lbc.27.1429052016840; Tue, 14 Apr 2015 15:53:36 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id a9si2279333laa.70.2015.04.14.15.53.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2015 15:53:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbqq2 with SMTP id qq2so20582840lbb.3 for ; Tue, 14 Apr 2015 15:53:36 -0700 (PDT) X-Received: by 10.152.198.200 with SMTP id je8mr13114922lac.29.1429052016563; Tue, 14 Apr 2015 15:53:36 -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 l1csp2163483lbt; Tue, 14 Apr 2015 15:53:35 -0700 (PDT) X-Received: by 10.66.177.238 with SMTP id ct14mr40382119pac.121.1429052014864; Tue, 14 Apr 2015 15:53:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si699101pdg.253.2015.04.14.15.53.32; Tue, 14 Apr 2015 15:53:34 -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 S933215AbbDNWx1 (ORCPT + 27 others); Tue, 14 Apr 2015 18:53:27 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:36828 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933148AbbDNWxO (ORCPT ); Tue, 14 Apr 2015 18:53:14 -0400 Received: by pdea3 with SMTP id a3so28559552pde.3 for ; Tue, 14 Apr 2015 15:53:14 -0700 (PDT) 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 Cc: 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 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 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.217.171 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: , 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