From patchwork Wed Dec 24 16:27:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5539761 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 8A695BEEA8 for ; Wed, 24 Dec 2014 16:33:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4863201DD for ; Wed, 24 Dec 2014 16:33:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E61C1201C7 for ; Wed, 24 Dec 2014 16:33:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752620AbaLXQd1 (ORCPT ); Wed, 24 Dec 2014 11:33:27 -0500 Received: from resqmta-po-05v.sys.comcast.net ([96.114.154.164]:55303 "EHLO resqmta-po-05v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751879AbaLXQdV (ORCPT ); Wed, 24 Dec 2014 11:33:21 -0500 Received: from resomta-po-04v.sys.comcast.net ([96.114.154.228]) by resqmta-po-05v.sys.comcast.net with comcast id XUUE1p0054vw8ds01UUET6; Wed, 24 Dec 2014 16:28:14 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-po-04v.sys.comcast.net with comcast id XUUD1p00Y0MU7Qa01UUEC8; 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 A32AC40A29; Wed, 24 Dec 2014 09:28:13 -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 18/20] selftests/vm: add install target to enable test install Date: Wed, 24 Dec 2014 09:27:54 -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=1419438494; bh=rOucSR7DM9MTsRVlt4XDRvANT+8MLUDco1UsV8Cl460=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=kzvKQBaZ/eA2XR2w0aoULMB/rbxkxnA/XpqSX+P34IMQ1zGFmtdXWoFn4KKipMAt6 j76uo0owjiRIHWFojyfhvT6OKdtfZRZdVxOJtaIANGShBA9ZvnjeEqy8XR9V3b2Bbp J2mgGfATXsA61DuTFYHT9J00hASlCRYQZo+4FJL7PloQNtnM4htl8TDiTlC+fvV517 5oTjWDDeRrSNmRoVa6aK7jwTSrDcjC6Bi+mR2Vwtx6XX9TiKevxMpK964n1QRAnTx7 wHvssUGeUidi1e5jpxZ1to1uRlEyv0q1hitVdf7W+YB5p1hjPG2L8tmET+87LvEAdl ioJIvHCQP46ew== 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/vm/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index 4c4b1f6..761d17d 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -4,13 +4,22 @@ CC = $(CROSS_COMPILE)gcc CFLAGS = -Wall BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest BINARIES += transhuge-stress +TEST_STR = /bin/sh ./run_vmtests || echo vmtests: [FAIL] all: $(BINARIES) %: %.c $(CC) $(CFLAGS) -o $@ $^ +install: +ifdef INSTALL_KSFT_PATH + install run_vmtests $(BINARIES) $(INSTALL_KSFT_PATH) + @echo "$(TEST_STR)" >> $(KSELFTEST) +else + @echo Run make kselftest_install in top level source directory +endif + run_tests: all - @/bin/sh ./run_vmtests || (echo "vmtests: [FAIL]"; exit 1) + @$(TEST_STR) clean: $(RM) $(BINARIES)