From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shuah Khan Subject: Re: [RFC v4 9/9] kmsg: selftests Date: Tue, 20 Oct 2015 07:37:50 -0600 Message-ID: <562643AE.10609@osg.samsung.com> References: <1445273404-24562-1-git-send-email-p.osmialowsk@samsung.com> <1445273404-24562-10-git-send-email-p.osmialowsk@samsung.com> <56254470.4070102@osg.samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-doc-owner@vger.kernel.org To: Paul Osmialowski Cc: Jonathan Corbet , Arnd Bergmann , Andrew Morton , Petr Mladek , Greg Kroah-Hartman , Daniel Mack , Kay Sievers , Joe Perches , Tejun Heo , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-api@vger.kernel.org, Richard Weinberger , Marcin Niesluchowski , Karol Lewandowski , Bartlomiej Zolnierkiewicz , Shuah Khan List-Id: linux-api@vger.kernel.org On 10/20/2015 05:10 AM, Paul Osmialowski wrote: > Hi Shuah, > > Thanks for your comments, > > On Mon, 19 Oct 2015, Shuah Khan wrote: > >>> --- a/tools/testing/selftests/Makefile >>> +++ b/tools/testing/selftests/Makefile >>> @@ -7,6 +7,7 @@ TARGETS += ftrace >>> TARGETS += futex >>> TARGETS += kcmp >>> TARGETS += kdbus >> >> Doesn't look like this patch is based on linux-kselftest next >> or Linus's latest. Please base your work on either one of the >> above. Please make sure "make kselftest" from top level Makefile >> doesn't break. >> >>> +TARGETS += kmsg > > Any guidelines what such test should be implemented (apart from use of > kselftest.h API)? If kselftest.h works well for reporting errors, please use it. No requirement on that. The one important thing to remember is new test shouldn't break "make kselftest" run and install tool kselftest_install.sh > >>> +kmsg-test: $(OBJS) >>> + $(CC) $(CFLAGS) $^ $(LDLIBS) -o $@ >>> + >>> +run_tests: >>> + ./kmsg-test --tap >> >> What does --tap do? Is this a longform option? >> I don't see it in usage() >> > > Should be removed - I copy-pasted parts of kdbus selftests Makefile not > noticing that. > > Best regards, > Paul > -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh@osg.samsung.com | (970) 217-8978