From patchwork Tue Jan 6 19:43:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 5576591 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 97A37BF6C3 for ; Tue, 6 Jan 2015 19:52:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF2C620221 for ; Tue, 6 Jan 2015 19:52:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD9A220256 for ; Tue, 6 Jan 2015 19:52:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932994AbbAFTwK (ORCPT ); Tue, 6 Jan 2015 14:52:10 -0500 Received: from resqmta-ch2-07v.sys.comcast.net ([69.252.207.39]:48429 "EHLO resqmta-ch2-07v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932987AbbAFTwE (ORCPT ); Tue, 6 Jan 2015 14:52:04 -0500 Received: from resomta-ch2-17v.sys.comcast.net ([69.252.207.113]) by resqmta-ch2-07v.sys.comcast.net with comcast id cjiA1p0082TL4Rh01jjnli; Tue, 06 Jan 2015 19:43:47 +0000 Received: from mail.gonehiking.org ([50.134.149.16]) by resomta-ch2-17v.sys.comcast.net with comcast id cjjl1p00f0MU7Qa01jjm70; Tue, 06 Jan 2015 19:43:47 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 8D19F40C1C; Tue, 6 Jan 2015 12:43:45 -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 03/20] selftests/efivarfs: add install target to enable test install Date: Tue, 6 Jan 2015 12:43:17 -0700 Message-Id: <29ee24f8de828eb143a1756f77bc44f61c9c3692.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=1420573427; bh=49OCd6pXGdd13v7sb1OHNiDO2moIgDsLyHIKXNMNogk=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=P5UffAT7CwH+6tJ7eToe7I9axMOlodlwt/b88BpwTW72CvJs9AGcG3m7JfkXfsDjc gq6S8tJhaBhjsYaPrXvzjPYxlrXBxpilnWhGskbmyLyWCRvikjwAYpFpg0FEOXDdRv xU8iv0s1dAJGm7AwSBsqORBqRYhnFjk+JnCLFi7Ya76pS+jj09M5RXZoxqFOfTFRc1 IxzzF7Mnvj/H+Am1qz20AQAW8u8gPaWmzz8Abv/3MNY/9MhnBV7LDsQwMELnNDsQkv awhwu5zPcn//6E+mZLJ869ADYjUB1abdnav2Tqq6BlxMx+ODnJw57L6yPxwVmpUde+ zFuvZz9ETwi9g== 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/efivarfs/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/efivarfs/Makefile b/tools/testing/selftests/efivarfs/Makefile index 29e8c6b..c5f389d 100644 --- a/tools/testing/selftests/efivarfs/Makefile +++ b/tools/testing/selftests/efivarfs/Makefile @@ -3,10 +3,22 @@ CFLAGS = -Wall test_objs = open-unlink create-read -all: $(test_objs) +TEST_STR = /bin/bash ./efivarfs.sh || echo 'efivarfs selftests: [FAIL]' + +all: + gcc open-unlink.c -o open-unlink + gcc create-read.c -o create-read + +install: +ifdef INSTALL_KSFT_PATH + install ./efivarfs.sh $(test_objs) $(INSTALL_KSFT_PATH) + @echo "$(TEST_STR)" >> $(KSELFTEST) +else + @echo "Run make kselftest_install in top level source directory" +endif run_tests: all - @/bin/bash ./efivarfs.sh || echo "efivarfs selftests: [FAIL]" + @$(TEST_STR) clean: rm -f $(test_objs)