From patchwork Tue Jan 6 19:43:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5576631 Return-Path: X-Original-To: patchwork-linux-kbuild@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 B8E5F9F357 for ; Tue, 6 Jan 2015 19:52:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD6F8200E9 for ; Tue, 6 Jan 2015 19:52:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B345A20256 for ; Tue, 6 Jan 2015 19:52:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932288AbbAFTvr (ORCPT ); Tue, 6 Jan 2015 14:51:47 -0500 Received: from resqmta-po-09v.sys.comcast.net ([96.114.154.168]:41368 "EHLO resqmta-po-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756603AbbAFTvq (ORCPT ); Tue, 6 Jan 2015 14:51:46 -0500 Received: from resomta-po-17v.sys.comcast.net ([96.114.154.241]) by resqmta-po-09v.sys.comcast.net with comcast id cjqB1p0085Clt1L01jrl4S; Tue, 06 Jan 2015 19:51:45 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-po-17v.sys.comcast.net with comcast id cjri1p00U0MU7Qa01jriHf; Tue, 06 Jan 2015 19:51:45 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 5A29841443; Tue, 6 Jan 2015 12:43:44 -0700 (MST) From: Shuah Khan To: mmarek@suse.cz, gregkh@linuxfoundation.org, akpm@linux-foundation.org, rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, keescook@chromium.org, tranmanphong@gmail.com, mpe@ellerman.id.au, cov@codeaurora.org, dh.herrmann@gmail.com, hughd@google.com, bobby.prani@gmail.com, serge.hallyn@ubuntu.com, ebiederm@xmission.com, tim.bird@sonymobile.com, josh@joshtriplett.org, koct9i@gmail.com, masami.hiramatsu.pt@hitachi.com Cc: Shuah Khan , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v4 02/20] selftests/cpu-hotplug: add install target to enable test install Date: Tue, 6 Jan 2015 12:43:16 -0700 Message-Id: <83e299d0172fa4487f8cd6db6c529fbbc8ff2ca5.1420571615.git.shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1420573905; bh=aBcTBSPjXKS6t450Ogh6f9nogS61SdPguiXMZbTfJUA=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=kZGSuM48BOaghvzFhCkZSEd09kIzIbwxLKerd2EUAtGu40d80sadaiu7joHPVaCEO J5U3Zu/jGTW72kb0+vwnpyfYitTF5A/gs9MMO8Qo9M04YD1imWqfvAtlxBLxoAvJDY d6Vrl10Ij1Pa5zncsrX2wKGXb8Lo+hquW8TZcZTslNGB7DGQN3l2www6Ndv6cnB9xK r8/f24WnjO0XXgzFshmWUZmRJdAy6aVYuFLjjq1O4nQ/U4S5uORzX11o2Uke+z6QMN 4Oy1EHejdyB1g6KrT4W4Bp0FsrXWE/gEHr+2DTII0acIfcJoOV2GkVvxEsskf1vCnH 0QwYc/+TGv0MQ== Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham 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 Add a new make target to enable installing test. This target installs test in the kselftest install location and add to the kselftest script to run the test. Install target can be run only from top level kernel source directory. Signed-off-by: Shuah Khan --- tools/testing/selftests/cpu-hotplug/Makefile | 14 ++++++++++++-- .../cpu-hotplug/{on-off-test.sh => cpu-on-off-test.sh} | 0 2 files changed, 12 insertions(+), 2 deletions(-) rename tools/testing/selftests/cpu-hotplug/{on-off-test.sh => cpu-on-off-test.sh} (100%) diff --git a/tools/testing/selftests/cpu-hotplug/on-off-test.sh b/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh similarity index 100% rename from tools/testing/selftests/cpu-hotplug/on-off-test.sh rename to tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh diff --git a/tools/testing/selftests/cpu-hotplug/Makefile b/tools/testing/selftests/cpu-hotplug/Makefile index e9c28d8..c168033 100644 --- a/tools/testing/selftests/cpu-hotplug/Makefile +++ b/tools/testing/selftests/cpu-hotplug/Makefile @@ -1,9 +1,19 @@ +TEST_STR=/bin/bash ./cpu-on-off-test.sh || echo 'cpu-hotplug selftests: [FAIL]' + all: +install: +ifdef INSTALL_KSFT_PATH + install ./cpu-on-off-test.sh $(INSTALL_KSFT_PATH)/cpu-on-off-test.sh + @echo "$(TEST_STR)" >> $(KSELFTEST) +else + @echo "Run make kselftest_install in top level source directory" +endif + run_tests: - @/bin/bash ./on-off-test.sh || echo "cpu-hotplug selftests: [FAIL]" + @$(TEST_STR) run_full_test: - @/bin/bash ./on-off-test.sh -a || echo "cpu-hotplug selftests: [FAIL]" + @/bin/bash ./cpu-on-off-test.sh -a || echo "cpu-hotplug selftests: [FAIL]" clean: