From patchwork Wed Dec 24 16:27:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5539781 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 598AC9F1CD for ; Wed, 24 Dec 2014 16:33:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 916DE201C7 for ; Wed, 24 Dec 2014 16:33:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B813C2012D for ; Wed, 24 Dec 2014 16:33:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751590AbaLXQdx (ORCPT ); Wed, 24 Dec 2014 11:33:53 -0500 Received: from resqmta-po-08v.sys.comcast.net ([96.114.154.167]:50298 "EHLO resqmta-po-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752598AbaLXQdU (ORCPT ); Wed, 24 Dec 2014 11:33:20 -0500 Received: from resomta-po-20v.sys.comcast.net ([96.114.154.244]) by resqmta-po-08v.sys.comcast.net with comcast id XUUE1p0025Geu2801UUEFL; Wed, 24 Dec 2014 16:28:14 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-po-20v.sys.comcast.net with comcast id XUUD1p0030MU7Qa01UUDY2; Wed, 24 Dec 2014 16:28:14 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id F14A93FED4; Wed, 24 Dec 2014 09:28:12 -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 17/20] selftests/user: add install target to enable test install Date: Wed, 24 Dec 2014 09:27:53 -0700 Message-Id: <5b8336fbe252deff25978dee99cb58e90e8ccd34.1419387513.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=1419438494; bh=/YA03gVfE7SSuBxdpQbAazQ8C66rM+/OIbdEYFrh8yQ=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=T3dH6MopRRIed+rOm1OZJmaqsVL3eavtYtAQpdKmBwsWTsd5bDGAGGR5afuhuiz+C hVQA4j1AGuYOe+0BA0OMKExAMD+KUigRevF2BXcavf2FTwyD9PA5N2mp+seS1P+Dsc NIDTIfklQJEn3PSDhP4jAb4DSZwgzbuw/gKwsNUorhMa+dSIjWvlxffKkcw7n+pBK7 lKae2C7fJL+GCRDTTxY1ccm6hPJJp0XHsbooKNPayov1W1PFmOOV2XCRUvKQu3lJFn FdKrt/FOj3FEY9XCCNbTJ04MBk5j2VchueM8IWjkOx+Tz64axeXBua09y7frN8WRaR x2avmPRx98TSA== 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/user/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/user/Makefile b/tools/testing/selftests/user/Makefile index 12c9d15..218c5aa 100644 --- a/tools/testing/selftests/user/Makefile +++ b/tools/testing/selftests/user/Makefile @@ -1,7 +1,17 @@ # Makefile for user memory selftests +TEST_STR = ./test_user_copy.sh + # No binaries, but make sure arg-less "make" doesn't trigger "run_tests" all: +install: +ifdef INSTALL_KSFT_PATH + install ./test_user_copy.sh $(INSTALL_KSFT_PATH) + @echo "$(TEST_STR)" >> $(KSELFTEST) +else + @echo Run make kselftest_install in top level source directory +endif + run_tests: all - ./test_user_copy.sh + @$(TEST_STR)