From patchwork Wed Dec 24 16:27:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5539851 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 E73769F1CD for ; Wed, 24 Dec 2014 16:34:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33EB0201D3 for ; Wed, 24 Dec 2014 16:34:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5314F201CD for ; Wed, 24 Dec 2014 16:34:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752155AbaLXQdP (ORCPT ); Wed, 24 Dec 2014 11:33:15 -0500 Received: from resqmta-po-02v.sys.comcast.net ([96.114.154.161]:49300 "EHLO resqmta-po-02v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751888AbaLXQdL (ORCPT ); Wed, 24 Dec 2014 11:33:11 -0500 Received: from resomta-po-16v.sys.comcast.net ([96.114.154.240]) by resqmta-po-02v.sys.comcast.net with comcast id XUTv1p0035BUCh401UU6sS; Wed, 24 Dec 2014 16:28:06 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-po-16v.sys.comcast.net with comcast id XUU51p00Y0MU7Qa01UU5gF; Wed, 24 Dec 2014 16:28:06 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 4803340A27; Wed, 24 Dec 2014 09:28:05 -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 07/20] selftests/kcmp: add install target to enable test install Date: Wed, 24 Dec 2014 09:27:43 -0700 Message-Id: <067b4c9878238c8a93f57f50a0c1aab16a26fc58.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=1419438486; bh=l7Kw/WjOJcDSJA9CIhOCyTUuXD3ZEROG4X8bUv/GEAA=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=Q52Ov4kJsOKK+LHVwqhBP93GFk4J7tF6vsCq8fVxW4K07HY7DkCeZdPpfC0AVd8pY Rzrri3YxA8d4gghAZkoM4jPVTPRYs799wCsp14Lzmen1maIn0rrNd8THKb1IO4ORTt O7a5jOuMpMtlP/Rgg+EgF04GurxJhsajqhKBW6gURkg/azMZlXFKnse0rDUeBMn+8T EyV5s0Pxxbupf8Udf27TeihYLlQI7WoAtKn8m8A5A5nmVXaudyg6rrXX25l01X/lXb dxPYizm751Jmj4hRV311UST+3Jz9r8BsERmEU85mTswlm+oRIQB+WrvrwxmGNdUtB8 8Xfhwj1BygNZg== 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/kcmp/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile index ff0eefd..8d640d0 100644 --- a/tools/testing/selftests/kcmp/Makefile +++ b/tools/testing/selftests/kcmp/Makefile @@ -1,10 +1,21 @@ CC := $(CROSS_COMPILE)$(CC) CFLAGS += -I../../../../usr/include/ +TEST_STR = ./kcmp_test || echo kcmp_test: [FAIL] + all: kcmp_test +install: +ifdef INSTALL_KSFT_PATH + install ./kcmp_test $(INSTALL_KSFT_PATH) + @echo "$(TEST_STR)" >> $(KSELFTEST) + @echo rm -f kcmp-test-file >> $(KSELFTEST) +else + @echo Run make kselftest_install in top level source directory +endif + run_tests: all - @./kcmp_test || echo "kcmp_test: [FAIL]" + @$(TEST_STR) clean: $(RM) kcmp_test kcmp-test-file