From patchwork Wed Dec 24 16:27:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5539811 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4B0E3BEEA8 for ; Wed, 24 Dec 2014 16:34:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 63C4D201C7 for ; Wed, 24 Dec 2014 16:34:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 799BF2012D for ; Wed, 24 Dec 2014 16:34:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752588AbaLXQdR (ORCPT ); Wed, 24 Dec 2014 11:33:17 -0500 Received: from resqmta-po-07v.sys.comcast.net ([96.114.154.166]:48197 "EHLO resqmta-po-07v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752555AbaLXQdL (ORCPT ); Wed, 24 Dec 2014 11:33:11 -0500 Received: from resomta-po-06v.sys.comcast.net ([96.114.154.230]) by resqmta-po-07v.sys.comcast.net with comcast id XUU11p0014yXVJQ01UU7Fo; Wed, 24 Dec 2014 16:28:07 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-po-06v.sys.comcast.net with comcast id XUU31p00D0MU7Qa01UU63Z; Wed, 24 Dec 2014 16:28:07 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id B90D940A27; Wed, 24 Dec 2014 09:28:06 -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 Cc: Shuah Khan , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v3 09/20] selftests/memory-hotplug: add install target to enable test install Date: Wed, 24 Dec 2014 09:27:45 -0700 Message-Id: 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=1419438487; bh=4LE3JndDNnRZbIyaxxFhitGDXq/uiKkFM5OSChBWPoc=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=RhV6tYzpJHA9aRhMEBgIy+Fcf84YQRILNiA2zBHlZ5ci2IOGQiq73Io6j4y5dOxza 8v27vj8QuHpsSbiMNCyIWKLNneJwG2+f/tz19z+vG4WTb0+9pdsjlacczFW1miTR5i 1YlTPlvbk0JAdX11dnLEGwUA/47fLRimKskjhiWUzJP1CWp+58DQlU4MyxM1+RikwC dSdDZa6EcXVFMB4YoOxjtJG2/vKcruAPAGFphKGQZ8eMv0phS6NHFZkcr8M8TpMW+k KAPd/Tcxl07CzjK4P33RcsWlSJIJZMh3pKN22H7QDlVN9LWrZ7sYvrrMETB9fLkfGt 5kZpEQDGUQhCA== 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/memory-hotplug/Makefile | 14 ++++++++++++-- .../memory-hotplug/{on-off-test.sh => mem-on-off-test.sh} | 0 2 files changed, 12 insertions(+), 2 deletions(-) rename tools/testing/selftests/memory-hotplug/{on-off-test.sh => mem-on-off-test.sh} (100%) diff --git a/tools/testing/selftests/memory-hotplug/on-off-test.sh b/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh similarity index 100% rename from tools/testing/selftests/memory-hotplug/on-off-test.sh rename to tools/testing/selftests/memory-hotplug/mem-on-off-test.sh diff --git a/tools/testing/selftests/memory-hotplug/Makefile b/tools/testing/selftests/memory-hotplug/Makefile index d46b8d4..561ee2b 100644 --- a/tools/testing/selftests/memory-hotplug/Makefile +++ b/tools/testing/selftests/memory-hotplug/Makefile @@ -1,9 +1,19 @@ +TEST_STR=/bin/bash ./mem-on-off-test.sh -r 2 || echo memory-hotplug selftests: [FAIL] + all: +install: +ifdef INSTALL_KSFT_PATH + install ./mem-on-off-test.sh $(INSTALL_KSFT_PATH)/mem-on-off-test.sh + @echo "$(TEST_STR)" >> $(KSELFTEST) >> $(KSELFTEST) +else + @echo Run make kselftest_install in top level source directory +endif + run_tests: - @/bin/bash ./on-off-test.sh -r 2 || echo "memory-hotplug selftests: [FAIL]" + @$(TEST_STR) run_full_test: - @/bin/bash ./on-off-test.sh || echo "memory-hotplug selftests: [FAIL]" + @/bin/bash ./mem-on-off-test.sh || echo "memory-hotplug selftests: [FAIL]" clean: