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: 47405 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 481DA2121F for ; Tue, 21 Apr 2015 22:50:07 +0000 (UTC) Received: by wgiv13 with SMTP id v13sf47981400wgi.3 for ; Tue, 21 Apr 2015 15:50:06 -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=LTSH2jBUyj80R3zacA6VysOOLh+ecqLs3RUChQWdwUz/86Yt0Z/2Gv+mzF/ZTBS01u NJcUF3Pt79FBQaaMfpQVKptewHTodIKvHgbusrkaYvsqzFJ44+sXsyzNu19c4AgDALNG hTy7Tebac/ywZ5Rne8hUcDjGfasiXJWnahqPT1t8v8qQJCldTFba1jYWEFSiYrmJc9Jh Hic4LZ4IRYCJU2+GWuUolB9N3Yik1H5UpEVb3MiFz+ByIvv3pdvaBQVeJSD9JWuw7n+a U8Sh6fb1+yaucbDWAxSj3rWGwFfeEORczE6Tv8IqdcOfFhble+W3mLG/RfDQ4gDOyPnk Cb7w== X-Gm-Message-State: ALoCoQkx/Jva6ShbjSvmCXty4NqjTtFqwLSUY6wE7zEKO4L+uZCOoj3tIfQLXzwGfCBKL2dg4GPU X-Received: by 10.152.19.67 with SMTP id c3mr10238873lae.7.1429656606602; Tue, 21 Apr 2015 15:50:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.42 with SMTP id cj10ls119860lad.51.gmail; Tue, 21 Apr 2015 15:50:06 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr22169954laj.88.1429656606425; Tue, 21 Apr 2015 15:50:06 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id ug12si2397086lac.47.2015.04.21.15.50.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Apr 2015 15:50:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbqq2 with SMTP id qq2so166776586lbb.3 for ; Tue, 21 Apr 2015 15:50:06 -0700 (PDT) X-Received: by 10.112.150.100 with SMTP id uh4mr3131857lbb.112.1429656605972; Tue, 21 Apr 2015 15:50:05 -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 l1csp907183lbt; Tue, 21 Apr 2015 15:50:05 -0700 (PDT) X-Received: by 10.68.110.195 with SMTP id ic3mr41821741pbb.124.1429656604146; Tue, 21 Apr 2015 15:50:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si4861899pbs.1.2015.04.21.15.50.03; Tue, 21 Apr 2015 15:50:04 -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 S965067AbbDUWt6 (ORCPT + 27 others); Tue, 21 Apr 2015 18:49:58 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36122 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965034AbbDUWtz (ORCPT ); Tue, 21 Apr 2015 18:49:55 -0400 Received: by pabsx10 with SMTP id sx10so254309446pab.3 for ; Tue, 21 Apr 2015 15:49:55 -0700 (PDT) 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 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 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 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.181 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