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: 6218401 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A51149F1C4 for ; Tue, 14 Apr 2015 22:54:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D1EE62035D for ; Tue, 14 Apr 2015 22:54:53 +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 0B9732034F for ; Tue, 14 Apr 2015 22:54:53 +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 1Yi9gG-0006Hg-Ar; Tue, 14 Apr 2015 22:51:44 +0000 Received: from mail-pa0-f54.google.com ([209.85.220.54]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yi9g9-0006Bz-NJ for linux-arm-kernel@lists.infradead.org; Tue, 14 Apr 2015 22:51:38 +0000 Received: by pacyx8 with SMTP id yx8so27709286pac.1 for ; Tue, 14 Apr 2015 15:51: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:from:to:cc:subject:date:message-id; bh=tOf248xD0B08PNqXZ3CsB+tO9UIrx8MEzn5bYjqXC8I=; b=a+mxCeLy0dNVIURJAxBLrWvfZI7gEQDKNqJ48fP5psjQ5hgKarUEfKEaG0hCrv/1hA BJZt63oCzkhbiW889j29mD6roDKhZ99j2zR7J+6K7x3S4qtw2NvtbxHRPYk8oCoPIAqG SBxx9se7rNgJLTEU+sIR8KXjQCvW9JsIAeF0lOJ2ECCiwELSENX2DU4OSSRjjd/ka1W8 ZEX0Cq2aK/TGOOuHSvqsraPPXKy+kZp0NxpvqYMp4EVHMXUJTC2HOcUiQvpuRtMRFWrU ToATzQpwM1oIc74SxdcQGfNH4QonHjNmd/5SltDeyMCymkOUo1qcweoh33CroBOf8qx4 jg1Q== X-Gm-Message-State: ALoCoQmDl+BH3+VJyYkuO6q8+rEuETEGJENYgSoxq/QTd6Im1k5QoCMvKjp/K/IF40Ks1PTbRSYW 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150414_155137_826192_2756DD25 X-CRM114-Status: UNSURE ( 8.33 ) 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