From patchwork Tue Jan 6 19:43:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5576501 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 375F29F357 for ; Tue, 6 Jan 2015 19:49:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 53E79200E9 for ; Tue, 6 Jan 2015 19:49:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8CD3E20256 for ; Tue, 6 Jan 2015 19:49:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932956AbbAFTtN (ORCPT ); Tue, 6 Jan 2015 14:49:13 -0500 Received: from resqmta-ch2-12v.sys.comcast.net ([69.252.207.44]:41055 "EHLO resqmta-ch2-12v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932947AbbAFTtB (ORCPT ); Tue, 6 Jan 2015 14:49:01 -0500 X-Greylist: delayed 305 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Jan 2015 14:48:50 EST Received: from resomta-ch2-03v.sys.comcast.net ([69.252.207.99]) by resqmta-ch2-12v.sys.comcast.net with comcast id cjio1p00229Cfhx01jjxts; Tue, 06 Jan 2015 19:43:57 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-ch2-03v.sys.comcast.net with comcast id cjjt1p00e0MU7Qa01jjvRg; Tue, 06 Jan 2015 19:43:56 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 799AF40A31; Tue, 6 Jan 2015 12:43:55 -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 15/20] selftests/sysctl: add install target to enable test install Date: Tue, 6 Jan 2015 12:43:29 -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=1420573437; bh=0eHJOVtSk56gn4jRp9eik7TYDlvaQfjgANAzJI85Gg8=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=gXk01PXjAIvGxn0hm98I4/TmCPdIUdpMdKzBN8j0jitRw3/+ATSUhKwWvhLFymg7A +ONOyfTrnuI4MoQEoIosnhO//LQKpWJvZYqAqdRaG5bKE1m/AT2FSwLH0zFIYpyic7 YIZASmAxdeJ7QGBfLOJC/5IDuEs3egibhsFvRCjPAl1mPszvlIjQgf9fg5BjFZ8wZi oxlwxFwZwdVWFZvCS4gm/vhqfB2/WfsKh0DWjk0A+WZEjigbR9Uo1K8p8cFdtQ1FIU TaKBJymsvtlcs2jj1OuhNIQqtjbSJGMe03PoP/x/bytLY3H/3+Tng94VpD/COlEp4Q HnHiEOVL1TS4Q== 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/sysctl/Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/sysctl/Makefile b/tools/testing/selftests/sysctl/Makefile index 0a92ada..9119ef1 100644 --- a/tools/testing/selftests/sysctl/Makefile +++ b/tools/testing/selftests/sysctl/Makefile @@ -4,12 +4,25 @@ # No binaries, but make sure arg-less "make" doesn't trigger "run_tests". all: +INSTALL_PROGS = common_tests run_numerictests run_stringtests +NUMERIC_TEST_STR = /bin/sh ./run_numerictests +STRING_TEST_STR = /bin/sh ./run_stringtests + # Allow specific tests to be selected. test_num: - @/bin/sh ./run_numerictests + @$(NUMERIC_TEST_STR) test_string: - @/bin/sh ./run_stringtests + @$(STRING_TEST_STR) + +install: all +ifdef INSTALL_KSFT_PATH + install $(INSTALL_PROGS) $(INSTALL_KSFT_PATH) + @echo "$(NUMERIC_TEST_STR)" >> $(KSELFTEST) + @echo "$(STRING_TEST_STR)" >> $(KSELFTEST) +else + @echo "Run make kselftest_install in top level source directory" +endif run_tests: all test_num test_string