From patchwork Tue Apr 21 22:49:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 6254211 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 8247FBF4A6 for ; Tue, 21 Apr 2015 22:53:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF31C2035B for ; Tue, 21 Apr 2015 22:53:50 +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 CF2C4202F8 for ; Tue, 21 Apr 2015 22:53:49 +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 1Ykgzo-0002wO-Rr; Tue, 21 Apr 2015 22:50:24 +0000 Received: from mail-pa0-f42.google.com ([209.85.220.42]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ykgzh-0001kd-AP for linux-arm-kernel@lists.infradead.org; Tue, 21 Apr 2015 22:50:18 +0000 Received: by pacyx8 with SMTP id yx8so254179420pac.1 for ; Tue, 21 Apr 2015 15:49:55 -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=bwyfA13sqP1r9VZNT3Jzi3JLAe6kP48VaSnmEMkk7cU=; b=EQEYVonpTAPcS2XoWVBIOsTmDwSWlJayxeyry70X2lsx5C3QyLSTi0lg4vnoSMss6+ DV+f/pY79oMYdAL+pPfottyEhWslwoApProu79qr+mzopPnvVe+CwD1UN2fz6lqjHKJh loqnydVjh9Veqp/qaC6AmXPtIdpMuN2jZi7RwtnmxhtuOvoa37xH7qOhu+K7efDuqg3G /Lq98bFvd9EClPwE/3UJ18pxu3rtqKW5KHWGOsOZEJmFmethYCUin8hm3tcCgPjPDvTZ IMCot4jNp8z0jd7nJUycwL8Zaba6KXFViDfKjdo/CPQjwto5GSDxGORAbZsFn6UueHY2 TfDw== X-Gm-Message-State: ALoCoQlhFUhyX8atHuTy632mWV/vInpzpIgUiV4ZecutqfpE8RwiMDi/Rg+Jfg7y2/dxTc2Sg1BU X-Received: by 10.66.154.111 with SMTP id vn15mr40951511pab.108.1429656595204; Tue, 21 Apr 2015 15:49:55 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id km11sm2994175pbd.90.2015.04.21.15.49.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Apr 2015 15:49:54 -0700 (PDT) From: Tyler Baker To: Shuah Khan Subject: [PATCH v4 1/7] selftests: copy TEST_DIRS to INSTALL_PATH Date: Tue, 21 Apr 2015 15:49:48 -0700 Message-Id: <1429656588-8832-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-20150421_155017_461376_93CD7CE6 X-CRM114-Status: UNSURE ( 8.56 ) 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. 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