From patchwork Mon Sep 7 14:04:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bamvor Zhang Jian X-Patchwork-Id: 53239 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 9716D22B06 for ; Mon, 7 Sep 2015 14:09:05 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf26808251wic.1 for ; Mon, 07 Sep 2015 07:09:04 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=nXd+tFckNgjT2ERuplk/66EroeGfOTdieH4L3aBmayA=; b=nM9dUjyf7VjIDwORaw8kL+5B/8KJtM7ZafeTWaoYqQJaIxtWOWGU6ZsZPm0j/rUVlQ 3QIFMZg9NKItWwj84csyJV3AcP3bK4+vmCUn4hTTK2ZVeGFsZFO2hArPvlvj/WZBFIHv HCtKm5DfYgCtMDagw5RUdddvosoRmar9hsgJAnPLUfSyURQnECightlL9ZRPRhZ8jWJA MPvQ8/tCB2mVR9oExa0Kvf+OKP83B7P6NN0hgVAXivCjnSwr1ef+e1Ffo5Mehql+CxJY FenuUF11KZP720ai67iCJf+vyzz1T5fbRRaerh/FewXL9SnbRbtFMWvk9Mhc4gd2F5gG hzfg== X-Gm-Message-State: ALoCoQmtSCiBbU5Tp0ZG2Q1I9KXuUUAMs36ADA71LygfL+jPPgvA1IuoPhQSNgxbxyvy71Y2VE+Y X-Received: by 10.180.90.106 with SMTP id bv10mr5109025wib.6.1441634944891; Mon, 07 Sep 2015 07:09:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.227 with SMTP id n3ls632304lan.0.gmail; Mon, 07 Sep 2015 07:09:04 -0700 (PDT) X-Received: by 10.152.20.134 with SMTP id n6mr17333691lae.108.1441634944696; Mon, 07 Sep 2015 07:09:04 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id p10si87434laj.76.2015.09.07.07.09.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Sep 2015 07:09:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbcao8 with SMTP id ao8so39692229lbc.3 for ; Mon, 07 Sep 2015 07:09:04 -0700 (PDT) X-Received: by 10.112.168.66 with SMTP id zu2mr6681553lbb.29.1441634944558; Mon, 07 Sep 2015 07:09:04 -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.59.35 with SMTP id w3csp398736lbq; Mon, 7 Sep 2015 07:09:03 -0700 (PDT) X-Received: by 10.66.249.70 with SMTP id ys6mr47288722pac.100.1441634943556; Mon, 07 Sep 2015 07:09:03 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si20229813pbt.204.2015.09.07.07.08.59; Mon, 07 Sep 2015 07:09:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752775AbbIGOIw (ORCPT + 28 others); Mon, 7 Sep 2015 10:08:52 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:36183 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751252AbbIGOIs (ORCPT ); Mon, 7 Sep 2015 10:08:48 -0400 Received: by padhk3 with SMTP id hk3so13324617pad.3 for ; Mon, 07 Sep 2015 07:08:48 -0700 (PDT) X-Received: by 10.66.147.68 with SMTP id ti4mr46350307pab.90.1441634927988; Mon, 07 Sep 2015 07:08:47 -0700 (PDT) Received: from linux-j170.site (ec2-52-68-133-70.ap-northeast-1.compute.amazonaws.com. [52.68.133.70]) by smtp.gmail.com with ESMTPSA id gh5sm12167908pbc.87.2015.09.07.07.08.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Sep 2015 07:08:47 -0700 (PDT) From: Bamvor Jian Zhang To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, khilman@linaro.org, tyler.baker@linaro.org, bamvor.zhangjian@linaro.org, shuahkh@osg.samsung.com, mpe@ellerman.id.au Subject: [PATCH v2 5/6] selftests: change install command to rsync Date: Mon, 7 Sep 2015 22:04:51 +0800 Message-Id: <1441634692-19494-6-git-send-email-bamvor.zhangjian@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441634692-19494-1-git-send-email-bamvor.zhangjian@linaro.org> References: <1441634692-19494-1-git-send-email-bamvor.zhangjian@linaro.org> 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: bamvor.zhangjian@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.178 as permitted sender) smtp.mailfrom=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: , The command of install could not handle the special files in exec testcases, change the default rule to rsync to fix this. The result of installation is unchanged after this commit. Suggested-by: Michael Ellerman Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/ftrace/Makefile | 2 +- tools/testing/selftests/lib.mk | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tools/testing/selftests/ftrace/Makefile b/tools/testing/selftests/ftrace/Makefile index 0acbeca..4e6ed13 100644 --- a/tools/testing/selftests/ftrace/Makefile +++ b/tools/testing/selftests/ftrace/Makefile @@ -1,7 +1,7 @@ all: TEST_PROGS := ftracetest -TEST_DIRS := test.d/ +TEST_DIRS := test.d include ../lib.mk diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 97f1c67..50a93f5 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -12,13 +12,10 @@ run_tests: all $(RUN_TESTS) define INSTALL_RULE - @if [ "X$(TEST_PROGS)$(TEST_PROGS_EXTENDED)$(TEST_FILES)" != "X" ]; then \ - mkdir -p $(INSTALL_PATH); \ - for TEST_DIR in $(TEST_DIRS); do \ - cp -r $$TEST_DIR $(INSTALL_PATH); \ - done; \ - echo "install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES)"; \ - install -t $(INSTALL_PATH) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES); \ + @if [ "X$(TEST_PROGS)$(TEST_PROGS_EXTENDED)$(TEST_FILES)" != "X" ]; then \ + mkdir -p ${INSTALL_PATH}; \ + echo "rsync -a $(TEST_DIRS) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(INSTALL_PATH)/"; \ + rsync -a $(TEST_DIRS) $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(INSTALL_PATH)/; \ fi endef