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: 6244751 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 5FBD3BF4A6 for ; Mon, 20 Apr 2015 23:16:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8899220435 for ; Mon, 20 Apr 2015 23:16:43 +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 9FF3C20421 for ; Mon, 20 Apr 2015 23:16:42 +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 1YkKtT-00015T-Tx; Mon, 20 Apr 2015 23:14:23 +0000 Received: from mail-pd0-f169.google.com ([209.85.192.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YkKtQ-0000yV-O5 for linux-arm-kernel@lists.infradead.org; Mon, 20 Apr 2015 23:14:21 +0000 Received: by pdbnk13 with SMTP id nk13so222152303pdb.0 for ; Mon, 20 Apr 2015 16:13:58 -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=MJ7G/x/8u8d1f9oNcD3ubG4dVa833mpILhzpLw0nQmWMq+KQjoYTU2GFcfRrUd3kxB zn4NDzUjHQLfz7S1KEvkPQl949+dy3rNJC/j6WgQpG08pTr/8C4FLQ8F51frh50MnLlD ZOMMMn/YcOGBFc+Q3GxUSX7aJk6ZsZAGkgBB5JaNmGR7oAXCGLA+Of9x57jZ2G6czaip PJOLwwKbSNfp0yjetnTpWPr64hPudpzjWMcS0OgnYazPiBp+es9mt5OSbQp+acnSRbpx 78TFGwGxK5rxtD/Y3ScEaIBBqs+bL77m/M1Ua3dBw3HtPg/FIkinYGQXnpfWheH7/6m0 e4XA== X-Gm-Message-State: ALoCoQmk1w/NKLfxv4di/lhn6wzpD1jhYDSv8G1CbtJH3dxxiRAn0vsiyLjGA1tGdAEtGlGaotg/ 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150420_161420_849208_E58D5D6D X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.0 (-) 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