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: 6235571 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 5A65EBF4A7 for ; Fri, 17 Apr 2015 22:01:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96D6720272 for ; Fri, 17 Apr 2015 22:01:34 +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 B843B202C8 for ; Fri, 17 Apr 2015 22:01:33 +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 1YjEI6-0008JW-0r; Fri, 17 Apr 2015 21:59:14 +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 1YjEI2-0008F5-I7 for linux-arm-kernel@lists.infradead.org; Fri, 17 Apr 2015 21:59:11 +0000 Received: by pabtp1 with SMTP id tp1so138042384pab.2 for ; Fri, 17 Apr 2015 14:58:48 -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=yt1mFh3KtpayO7OE89TkNXtNbyfUvcwUTlMzPvGng0Q=; b=NrcM9A9QBx7nvKOHXL/k0gV3mubV7pCVzEp+iGznD5j74MbQeQwtueluPIFmUmSGen RI5KsOElc8SYwPKPyfRa8F21PgioeGsK2pFK5Ui2wCNcORaH+5cUUGAu/t1CHuhPkY46 p07bnHTes5RkOL7tbNbnWjGaRJe2Fu89yxkxEsNOA3pZqk0D4M2iUMswBHiLMdnF7j6H ck2q9JCp8EwIlMjbTm6pJ+Ejv+uk8qd+9c85AS9GWXRgFKogj6ZDNM9Tb/AagIYm/G3y lIJIEFSX4XNXuZByP+pJJgF2oa7dPwYsdtxp/xrd9HL2QXjk3GlAGmEUsCKKV+WgWbSm S3HA== X-Gm-Message-State: ALoCoQl++0mnSnbdmnECiExlHQd7uZQNuJj5xmWG5EoZKYooG4/cjj7jXQ37XKkFp3E6CFaon1bW 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150417_145910_638131_D879A1D3 X-CRM114-Status: UNSURE ( 7.84 ) 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 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