From patchwork Tue Apr 14 22:51: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: 47153 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 320722121F for ; Tue, 14 Apr 2015 22:51:40 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf5579658lbb.0 for ; Tue, 14 Apr 2015 15:51:39 -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=V0oY1wUDG8rqC9Usa1RCjIozBBtWvCOoV6PYf6YUTi0=; b=nGIUdxORWkEHoMDUjdQi/FzRyAfHiJXK/1wPj5D8f7MhxXinzDYNBDh5I6NN6CS8gZ Sko1oGkHiZBCj3MeJlA6eggi/Fb5+CtDZH856mR5HRbb7CcUOkuvd3qdHcXnCKTtnhIx Cv4WVHUftYA5WminCRnRJd8cG2pSMRV/yvWVL4AVS+9QmY9HMTn1bCKhlu40xDzydG3S um88AteC/kvSStENd8AEU9Oq106zSi/gf2U90fG5gRD2IMWzuda7vKEaCGOWHeyO8WTf YTp2DK2Qy5usfJ4WJnZLSzWSfFs7J8oJe+W07F0N3Wt1dhuncQz27UbxBinSbrD0yOxl /SsA== X-Gm-Message-State: ALoCoQlP21eemtdZGB43u3p7seeguzV0NPqyZwgbxMHf/q6d/17djnzkVN08Y2ikNhKj9w97u61k X-Received: by 10.112.17.105 with SMTP id n9mr3577223lbd.8.1429051899038; Tue, 14 Apr 2015 15:51:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.3 with SMTP id 3ls109641lai.36.gmail; Tue, 14 Apr 2015 15:51:38 -0700 (PDT) X-Received: by 10.152.4.136 with SMTP id k8mr21052991lak.103.1429051898799; Tue, 14 Apr 2015 15:51:38 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id b5si2282557laf.46.2015.04.14.15.51.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2015 15:51:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbqq2 with SMTP id qq2so20558442lbb.3 for ; Tue, 14 Apr 2015 15:51:38 -0700 (PDT) X-Received: by 10.152.87.204 with SMTP id ba12mr21415927lab.35.1429051898544; Tue, 14 Apr 2015 15:51:38 -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 l1csp2162902lbt; Tue, 14 Apr 2015 15:51:37 -0700 (PDT) X-Received: by 10.68.136.66 with SMTP id py2mr40408913pbb.29.1429051896841; Tue, 14 Apr 2015 15:51:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si3816067pdm.213.2015.04.14.15.51.35; Tue, 14 Apr 2015 15:51:36 -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 S932580AbbDNWv3 (ORCPT + 27 others); Tue, 14 Apr 2015 18:51:29 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33039 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932336AbbDNWvR (ORCPT ); Tue, 14 Apr 2015 18:51:17 -0400 Received: by paboj16 with SMTP id oj16so27798565pab.0 for ; Tue, 14 Apr 2015 15:51:16 -0700 (PDT) X-Received: by 10.70.94.169 with SMTP id dd9mr40344839pdb.34.1429051876417; Tue, 14 Apr 2015 15:51:16 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id pb2sm2117163pdb.33.2015.04.14.15.51.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Apr 2015 15:51:15 -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 1/7] selftests: copy TEST_DIRS to INSTALL_PATH Date: Tue, 14 Apr 2015 15:51:09 -0700 Message-Id: <1429051869-14599-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.172 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