From patchwork Wed Dec 24 16:27:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5539931 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 2A863BEEA8 for ; Wed, 24 Dec 2014 16:36:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5ABC9201CD for ; Wed, 24 Dec 2014 16:36:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 835DE201DD for ; Wed, 24 Dec 2014 16:36:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751692AbaLXQgv (ORCPT ); Wed, 24 Dec 2014 11:36:51 -0500 Received: from resqmta-po-11v.sys.comcast.net ([96.114.154.170]:35255 "EHLO resqmta-po-11v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752150AbaLXQgT (ORCPT ); Wed, 24 Dec 2014 11:36:19 -0500 Received: from resomta-po-06v.sys.comcast.net ([96.114.154.230]) by resqmta-po-11v.sys.comcast.net with comcast id XUU11p0034yXVJQ01UU1E8; Wed, 24 Dec 2014 16:28:01 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-po-06v.sys.comcast.net with comcast id XUU01p00K0MU7Qa01UU015; Wed, 24 Dec 2014 16:28:01 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 60EAF40A29; Wed, 24 Dec 2014 09:28:00 -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 01/20] selftests/breakpoints: add install target to enable test install Date: Wed, 24 Dec 2014 09:27:37 -0700 Message-Id: <0a42ee9b3e243c71927d7d71c5cb6e5f5ade510e.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=1419438481; bh=gH2QJ4jw31sEEYqrQdrYGGjYae7I1C13rw11bM6ad5g=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=S7YRnXqg/D0u/WkIEn+Z7uzpBKGZVZi4yZFtzHI+2kDSnRILaaYxmScW2DgdVgLCd WiSbQZiNmBWjLwil+ovtfix1y02Ehwv0BP3/liDpSRL8kBZCdj/Dfgwj1sKPDNj76t tdpMI/afaF8fLJD+9c8UObf4lqbvuhWLtqzVMBiwTE6Yxt5bfh1yI0b5uYlf1Ct2YA LFspMU07mQq3IanXveJUiEvR0WoDyvXdhW2wR0UItOimDw2dw9ids9hcjBtAk4ahHE 00JJddy8dks9+xJ4YEv5h4Lh2M5RyumzsB7uH8MXIYsH0nEYZV55/6oJJ3Q3xN6G1q jkWm276NFQVWg== 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/breakpoints/Makefile | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/breakpoints/Makefile b/tools/testing/selftests/breakpoints/Makefile index e18b42b..b5a5fe8 100644 --- a/tools/testing/selftests/breakpoints/Makefile +++ b/tools/testing/selftests/breakpoints/Makefile @@ -8,6 +8,7 @@ ifeq ($(ARCH),x86_64) ARCH := x86 endif +TEST_STR = ./breakpoint_test || echo breakpoints selftests: [FAIL] all: ifeq ($(ARCH),x86) @@ -16,8 +17,22 @@ else echo "Not an x86 target, can't build breakpoints selftests" endif -run_tests: - @./breakpoint_test || echo "breakpoints selftests: [FAIL]" +install: +ifdef INSTALL_KSFT_PATH +ifeq ($(ARCH),x86) + install ./breakpoint_test $(INSTALL_KSFT_PATH) + @echo "$(TEST_STR)" >> $(KSELFTEST) +else + @echo Not an x86 target, unable to install breakpoints selftests +endif +else + @echo Run make kselftest_install in top level source directory +endif + +run_tests: all +ifeq ($(ARCH),x86) + @$(TEST_STR) +endif clean: rm -fr breakpoint_test