From patchwork Tue Jan 6 19:43:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5576721 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 AD9D19F357 for ; Tue, 6 Jan 2015 19:55:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C71C920221 for ; Tue, 6 Jan 2015 19:55:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76504200E9 for ; Tue, 6 Jan 2015 19:55:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932655AbbAFTnw (ORCPT ); Tue, 6 Jan 2015 14:43:52 -0500 Received: from resqmta-ch2-08v.sys.comcast.net ([69.252.207.40]:60984 "EHLO resqmta-ch2-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932646AbbAFTnu (ORCPT ); Tue, 6 Jan 2015 14:43:50 -0500 Received: from resomta-ch2-10v.sys.comcast.net ([69.252.207.106]) by resqmta-ch2-08v.sys.comcast.net with comcast id cjjp1p0062JGN3p01jjpMB; Tue, 06 Jan 2015 19:43:49 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-ch2-10v.sys.comcast.net with comcast id cjjn1p00Z0MU7Qa01jjoHM; Tue, 06 Jan 2015 19:43:49 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 746C94179E; Tue, 6 Jan 2015 12:43:47 -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 05/20] selftests/ftrace: add install target to enable test install Date: Tue, 6 Jan 2015 12:43:19 -0700 Message-Id: <20a71af8dcebf0369890391e8587afc5ca1a8035.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=1420573429; bh=pPVhlPWdQAOew7I0aXmFhNNoBliHS4aG2lwX61883Fk=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=LmEqEDkCNGXvwSF3JwOY6VIOZG2LkPBcdELThl9+gIaySv4Ca1SWBG6sEEGq11wdp V2ATzDn6J/gGLDEaVF17SxDhvTXdyJO+tMuJ2XSnkTSq+MSTqDE1/s2nrddzdCotDW CYEasUp8af9sU2ZXC8HKdFzz2e6R0lwMIwmEBl0zgjZJwc+3rrP0bZhKrKbiJcgnRD xyb7DDRfOu1cF3UbTV0kPfYlDVG+mKRti2JIdaIUpy4FI9JKHPDNiCjT4C93Nu6kLu bTJj9Z592b9nJFc4VPtPryRRIVby0yWnQ4k9M61DNkKBc9dnI/ObpxyxQ4ekyMTd3e 8ve72jhM6PQ1g== 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 Acked-by: Steven Rostedt Acked-by: Masami Hiramatsu --- tools/testing/selftests/ftrace/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/Makefile b/tools/testing/selftests/ftrace/Makefile index 76cc9f1..c5c77584 100644 --- a/tools/testing/selftests/ftrace/Makefile +++ b/tools/testing/selftests/ftrace/Makefile @@ -1,7 +1,18 @@ +TEST_STR = /bin/sh ./ftracetest || echo 'ftrace selftests: [FAIL]' + all: +install: +ifdef INSTALL_KSFT_PATH + install ./ftracetest $(INSTALL_KSFT_PATH) + @cp -r test.d $(INSTALL_KSFT_PATH) + echo "$(TEST_STR)" >> $(KSELFTEST) +else + @echo "Run make kselftest_install in top level source directory" +endif + run_tests: - @/bin/sh ./ftracetest || echo "ftrace selftests: [FAIL]" + @$(TEST_STR) clean: rm -rf logs/*