From patchwork Wed Sep 9 13:06:28 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: 53322 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 6E91822B19 for ; Wed, 9 Sep 2015 13:11:31 +0000 (UTC) Received: by lagj9 with SMTP id j9sf4048308lag.0 for ; Wed, 09 Sep 2015 06:11:30 -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=7S6AMMqF0nQtoq9Jzc3a5qgOSn7P3wYfjy1p+o5H8G4=; b=QgZLjEbIFuR2NMHl5bB9sF1qEYmRqtkj0oM+qMYsubkft1xISw8KR+yWcNAhsktw3g xOcpmrLGE6fOjAw71U7whA86sIUl4X+SxN99FOJ5xLc7EyPL0PcUZ7iu9jh2CG/cSkA0 BJswvBXEcWvDu0LjK6SMg5vGXQeE3UQk6gEjfEuclBCghQVtjlQXMTc0wifPzYGO/ALA lD0lS2baMllcMwNlpgVe9TCgQRlZgJ5A+KOcCQzniWfm3UTHMgR8WoxfhgNZZI6DL68G y0/a7j+J7DQF6bUAzeeKXWasuxPS6Bikrhh+S+dS1dwPeyy8a/oMDYdn+hxc/TrgdLhP 870A== X-Gm-Message-State: ALoCoQnbSi0PrxVXxsdeQ9o5B9ntTMj7LJ5LYzQ0GjNAX7H8KhwhgmZ+j903uYks4py+hsRiqmtj X-Received: by 10.180.35.132 with SMTP id h4mr4821139wij.5.1441804290371; Wed, 09 Sep 2015 06:11:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.72 with SMTP id lu8ls42180lac.66.gmail; Wed, 09 Sep 2015 06:11:30 -0700 (PDT) X-Received: by 10.112.171.227 with SMTP id ax3mr28034509lbc.118.1441804290000; Wed, 09 Sep 2015 06:11:30 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id 4si6638103laz.170.2015.09.09.06.11.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 06:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lanb10 with SMTP id b10so6372232lan.3 for ; Wed, 09 Sep 2015 06:11:29 -0700 (PDT) X-Received: by 10.112.77.10 with SMTP id o10mr28886894lbw.73.1441804289872; Wed, 09 Sep 2015 06:11:29 -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 w3csp325651lbq; Wed, 9 Sep 2015 06:11:28 -0700 (PDT) X-Received: by 10.107.9.151 with SMTP id 23mr54832549ioj.170.1441804288741; Wed, 09 Sep 2015 06:11:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14si11391039pbt.201.2015.09.09.06.11.27; Wed, 09 Sep 2015 06:11:28 -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 S1754545AbbIINLP (ORCPT + 28 others); Wed, 9 Sep 2015 09:11:15 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35976 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754053AbbIINKt (ORCPT ); Wed, 9 Sep 2015 09:10:49 -0400 Received: by padhk3 with SMTP id hk3so10152048pad.3 for ; Wed, 09 Sep 2015 06:10:48 -0700 (PDT) X-Received: by 10.68.254.200 with SMTP id ak8mr70653551pbd.53.1441804248068; Wed, 09 Sep 2015 06:10:48 -0700 (PDT) Received: from linux-j170.site (tk2-223-21014.vs.sakura.ne.jp. [160.16.94.18]) by smtp.gmail.com with ESMTPSA id v7sm1211946pdr.71.2015.09.09.06.10.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 06:10: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 v3 4/5] selftests: change install command to rsync Date: Wed, 9 Sep 2015 21:06:28 +0800 Message-Id: <1441803989-28513-5-git-send-email-bamvor.zhangjian@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441803989-28513-1-git-send-email-bamvor.zhangjian@linaro.org> References: <1441803989-28513-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.215.41 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 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