From patchwork Mon Apr 20 23:13:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 47376 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F32712121F for ; Mon, 20 Apr 2015 23:14:16 +0000 (UTC) Received: by wiun10 with SMTP id n10sf385738wiu.1 for ; Mon, 20 Apr 2015 16:14:16 -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=df3AsAGfhyx/4EfEzsjxNaIUcgr8gQ1/vZ9AnubXErY=; b=dlxYxgweGaompCcUSmVT9jqWwWz/++4g72/BsmCEvTYBUU0aa2ZTcnhcfhRmHisk/i 5dhS9f0VkfACPqdKBaenotPzWEQ7KjxmlGZxwltPFW9Weol6KzKQd5TcUwZEJdIOOX+J bhtEZrj98TKnEOFGoiqLF31+I13Jj70uuWLin+RxPbqzVRPH06lvS9FYVz4MEpnGjeTo KaXpeuZfXFZ1aT8CVXvQ208Rc0+F7RLP5VkHImmwVgxKq4lEX3/BZqFo6FQQLfeBiEH5 fT8kgjkDxuBr74JqWj0/Eon5VeeBTt8eD8kLVGJ5Jv3TFruTn99xi8gCWkJfHbRH5D2Q p5fw== X-Gm-Message-State: ALoCoQlna1wUHhNxuQ+4EV53vJr9CVT/g6EXGFx/DTcds9ebuJA+6kJrUsrtJj58oRH9x6B7WjEF X-Received: by 10.194.47.179 with SMTP id e19mr5332123wjn.4.1429571656296; Mon, 20 Apr 2015 16:14:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.114 with SMTP id q18ls897498laa.8.gmail; Mon, 20 Apr 2015 16:14:16 -0700 (PDT) X-Received: by 10.152.29.42 with SMTP id g10mr6418586lah.58.1429571656107; Mon, 20 Apr 2015 16:14:16 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id uo6si63134lbc.21.2015.04.20.16.14.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 16:14:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbbuc2 with SMTP id uc2so142611033lbb.2 for ; Mon, 20 Apr 2015 16:14:16 -0700 (PDT) X-Received: by 10.152.36.2 with SMTP id m2mr17345938laj.72.1429571655674; Mon, 20 Apr 2015 16:14:15 -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 l1csp297329lbt; Mon, 20 Apr 2015 16:14:14 -0700 (PDT) X-Received: by 10.66.100.138 with SMTP id ey10mr31780152pab.142.1429571653562; Mon, 20 Apr 2015 16:14:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq4si86714pbc.142.2015.04.20.16.14.05; Mon, 20 Apr 2015 16:14:13 -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 S1754249AbbDTXOA (ORCPT + 26 others); Mon, 20 Apr 2015 19:14:00 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:36264 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752549AbbDTXN7 (ORCPT ); Mon, 20 Apr 2015 19:13:59 -0400 Received: by pdea3 with SMTP id a3so222246923pde.3 for ; Mon, 20 Apr 2015 16:13:58 -0700 (PDT) X-Received: by 10.66.220.5 with SMTP id ps5mr32498450pac.16.1429571638738; Mon, 20 Apr 2015 16:13:58 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id pm1sm36554pdb.89.2015.04.20.16.13.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Apr 2015 16:13:57 -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 v3 1/8] selftests: copy TEST_DIRS to INSTALL_PATH Date: Mon, 20 Apr 2015 16:13:52 -0700 Message-Id: <1429571632-25557-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.217.169 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. Acked-by: Michael Ellerman 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