Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753942AbbG3Qp0 (ORCPT ); Thu, 30 Jul 2015 12:45:26 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50403 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752668AbbG3QpY (ORCPT ); Thu, 30 Jul 2015 12:45:24 -0400 Date: Thu, 30 Jul 2015 09:45:23 -0700 From: Greg Kroah-Hartman To: Cyril Hrubis Cc: David Drysdale , linux-api@vger.kernel.org, Michael Kerrisk , Andrew Morton , Arnd Bergmann , Shuah Khan , Jonathan Corbet , Eric B Munson , Randy Dunlap , Andrea Arcangeli , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Oleg Nesterov , Linus Torvalds , Andy Lutomirski , Al Viro , Rusty Russell , Peter Zijlstra , Vivek Goyal , Alexei Starovoitov , David Herrmann , "Theodore Ts'o" , Kees Cook , Miklos Szeredi , Milosz Tanski , Fam Zheng , Josh Triplett , Mathieu Desnoyers , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 1/1] Documentation: describe how to add a system call Message-ID: <20150730164523.GA5364@kroah.com> References: <1438242731-27756-1-git-send-email-drysdale@google.com> <1438242731-27756-2-git-send-email-drysdale@google.com> <20150730163007.GA10522@rei.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150730163007.GA10522@rei.suse.de> User-Agent: Mutt/1.5.23+102 (2ca89bed6448) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1558 Lines: 38 On Thu, Jul 30, 2015 at 06:30:07PM +0200, Cyril Hrubis wrote: > Hi! > > +Testing > > +------- > > + > > +A new system call should obviously be tested; it is also useful to provide > > +reviewers with a demonstration of how user space programs will use the system > > +call. A good way to combine these aims is to include a simple self-test > > +program in a new directory under tools/testing/selftests/. > > I know that this is a bit off topic, but since the selftest is now the > official place to add kernel testcases to let me rant about it a bit. > > It's a bit of a pain seeing people reinvent the wheel and trying to > figure out consistent test interface while most of the problems has been > solved in LTP[1] test library quite some time ago. Especially use of the > SAFE_MACROS[2] would simplify writing test setups quite a lot. > > I wonder if we can at least share the test library, pulling it out of > LTP, or at least the interesting parts, wouldn't be hard at all. > > [1] > https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#221-basic-test-structure > > [2] > https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#224-safe-macros That would be great, please send patches to do so to the linux-api mailing list and the test maintainer. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/