From patchwork Fri Apr 17 21:58:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 47295 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E603320553 for ; Fri, 17 Apr 2015 21:59:02 +0000 (UTC) Received: by widjs5 with SMTP id js5sf7021829wid.3 for ; Fri, 17 Apr 2015 14:59:02 -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=+NB553HRdGWC/PIBIR2rEthH8g4Hcfp0VFUWyMH8Cjo=; b=IhPxMuYYTjK4a1bwNKxRz9k1pg/lstIOOFUhy/YAWPsxtRDp03QU4ld85xQv5PelpU dmJZvOQUiHs/bkBixn1ow4IdP+1BXRruVnfhNFShOjiUBSK0f0zIx9saAkb8h2hAzLCG P0NRzutJUwhh3WNI3j3Sk001CMoypLyRMEm7vhcXnokIx9UyTlNIOUoxNFlFylh3IfCZ 9mmdKSLPxStaJiAkzyB5ncFPzCeg/mwVpCKerrzT0L6+RDHOtOVV2UuuCsdMcglytsxu 3EdJ0dKiAyE1vQsHXKoMAPueue4bKLwTpilWmKt85cX679wtJKS/5Lav1v4DaxJyuv08 cdEQ== X-Gm-Message-State: ALoCoQl+IVe69m+G3h6tp2KQe3rVMgSmD8ZdZ1xYrieHGNWklT/R5O9gr3jq7ICa8sig6T0uvqZz X-Received: by 10.112.160.197 with SMTP id xm5mr2343194lbb.15.1429307942040; Fri, 17 Apr 2015 14:59:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.133 with SMTP id kq5ls562131lac.102.gmail; Fri, 17 Apr 2015 14:59:01 -0700 (PDT) X-Received: by 10.152.23.99 with SMTP id l3mr6057176laf.61.1429307941797; Fri, 17 Apr 2015 14:59:01 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id u5si9669875lal.85.2015.04.17.14.59.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 14:59:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by labbd9 with SMTP id bd9so90283394lab.2 for ; Fri, 17 Apr 2015 14:59:01 -0700 (PDT) X-Received: by 10.112.29.36 with SMTP id g4mr6227638lbh.56.1429307941338; Fri, 17 Apr 2015 14:59:01 -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 l1csp229290lbt; Fri, 17 Apr 2015 14:59:00 -0700 (PDT) X-Received: by 10.70.1.75 with SMTP id 11mr8944818pdk.147.1429307939749; Fri, 17 Apr 2015 14:58:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si2367719pda.86.2015.04.17.14.58.58; Fri, 17 Apr 2015 14:58:59 -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 S1753330AbbDQV6u (ORCPT + 27 others); Fri, 17 Apr 2015 17:58:50 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34863 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752253AbbDQV6t (ORCPT ); Fri, 17 Apr 2015 17:58:49 -0400 Received: by pabtp1 with SMTP id tp1so138042381pab.2 for ; Fri, 17 Apr 2015 14:58:48 -0700 (PDT) X-Received: by 10.70.131.227 with SMTP id op3mr9099496pdb.84.1429307928675; Fri, 17 Apr 2015 14:58:48 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id w6sm11018383pbt.60.2015.04.17.14.58.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Apr 2015 14:58:44 -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 v2 1/8] selftests: copy TEST_DIRS to INSTALL_PATH Date: Fri, 17 Apr 2015 14:58:39 -0700 Message-Id: <1429307919-871-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.48 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: , Loop over all TEST_DIRS and recursively copy them to the INSTALL_PATH. Tests such as ftrace require a directory and all of it's contents to execute the test properly, thus these directories and files need to be copied when we perform an install. Signed-off-by: Tyler Baker --- tools/testing/selftests/lib.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 2194155..ee412ba 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -13,6 +13,9 @@ run_tests: all define INSTALL_RULE mkdir -p $(INSTALL_PATH) + @for TEST_DIR in $(TEST_DIRS); do\ + cp -r $$TEST_DIR $(INSTALL_PATH); \ + done; install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) endef