Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp212103yba; Wed, 8 May 2019 19:15:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqN7eXdS2k+eByA0ickUmdTm45BfynyXly6ShICCy4gNF12neLfLWK9vexUwMjUJrU+nfu X-Received: by 2002:a63:a351:: with SMTP id v17mr2039797pgn.431.1557368109032; Wed, 08 May 2019 19:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557368109; cv=none; d=google.com; s=arc-20160816; b=yJz2rAeYcey/vGIFLTdNH4xccTXMkPll2FBWRIRWGplMt6/sp5QvTlZi0WIDExHWNH ey4K6BSE9kGPgjSq4h81fh7YvgtDQoQ99x1VUtKrkeet2Zam9hsEFmQEysY7DRbT8LMv 6sku+21zjVx95p5kode4NimpXHgjKVMxNp+M/hXQTWTi0xbZxnQwAeYSXl9cYQfq7pDo mRhpRCHiWAlijXVLxT9xd5Igx53KEIeo/fHWj48GAE0i+6ic6D9SRHw8lXDWAOJe+TLs PYm1AfoJodGt4kbF3CN2512sNvGh1KVk47mkxPqaWqmqj9nJP4j/dIbVtT/YdOWM00H2 a+hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=m2h4qfOyf/vTBN3ksTZ+p+B5Uh42DjnmBaKteMIQJDg=; b=QxM0X5ArLmyMZ/bGLU0yy+xl10wl/QKIuuVqc0RfzzpPce0sEY0z+gW8P8EKCflkPF jTeNsnUmFHesekRd0Zs0AIFjGNSetOQ937E8lGgKemMbNKzBTdGZQB7Q0cQDrxU0dhLH jR/qnj1JL3iIFAg2hQ1YiqbqYqyZ6E998e4Xoz/RWXvW4iubt9h9i0USTe9utGwDcCL4 Md+8aEyEBjYfj5lLvxAECWtv8JvhB2Maj0ULYws1zzLENwf96OnNryyhH68sY9BtU2kC zM+/dx+CJGZnaQ4OZw5H+gPHbkEcP0GzDBh+m/iMIjaAAHYsFCWV3csFB9/t7JBJEfRs m7Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d6Fl21d6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y24si845599plp.270.2019.05.08.19.14.52; Wed, 08 May 2019 19:15:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d6Fl21d6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726597AbfEICOE (ORCPT + 99 others); Wed, 8 May 2019 22:14:04 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36998 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfEICOD (ORCPT ); Wed, 8 May 2019 22:14:03 -0400 Received: by mail-pf1-f195.google.com with SMTP id g3so437300pfi.4; Wed, 08 May 2019 19:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=m2h4qfOyf/vTBN3ksTZ+p+B5Uh42DjnmBaKteMIQJDg=; b=d6Fl21d6H9hguqCIk66KfQTbpzIqdRCUj3hyqEHsDnZWMFK8wQPsR7wgx3oa+G2kjG 1seT91f0+lIwQZd84COg8BT3K9ELnhDM30SHEOrlnvKeE7/5VX5u1W/8fgPsbHGyE+tg N1mbck/bnevbonwY9JDeI4wL+fVc6yDfWWKPjYGMVo+t1urDbbw17h12P2lsuAick9RL +tTl21ycCYmhS8aq1IQN4QtpicNviaYVVDhPWJWCkKNQi57gYY8h3oQc9YLQvbqDRawh S+/psk+LuYFrjp041aE4v+E+1oI4xE/yaxSeWSVYuo1fFT8XcryTFla0UCjHS8CZoXbN /oeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=m2h4qfOyf/vTBN3ksTZ+p+B5Uh42DjnmBaKteMIQJDg=; b=a7fncWhP6kjwsAbhSo1YWP0/rHwq/XMQuuQXXr46s42tQEcjL5MpAPnwfamFge9o24 j+kx6dYi0h/zZqWI7fu1pyDT/A/TNw+XIc2Sd4rLtZFLcYmef8A+E2pmueF9IZ7UvE4B tRmA9rOJsjqwiS9yw1LS/KIaBbROhV5tam5IVWWFJHRNdZQBx9FdBrBMotf7lGp6OQDw 78s8GC2X+if4VyTgTp+erjrOVF1Fe5g4LED91vaixGF9EDDei34zNZbWhycsK2ymo3JV c3Ac9U8r0xbU0DhKe+QN0KqXX0FlD5B9ja1oDwCTenEQ+vMDqssu3C8FtV6/7Dj8msTm VA8A== X-Gm-Message-State: APjAAAXE8x9H0Sma10zb7yq2/rd+v+hTRzAcy2H9kI7d74mmm1Z04r35 9OEsiKPoevvCVzxHWt6tavI= X-Received: by 2002:a63:b64:: with SMTP id a36mr2188141pgl.58.1557368042377; Wed, 08 May 2019 19:14:02 -0700 (PDT) Received: from [192.168.1.70] (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id a17sm668823pff.82.2019.05.08.19.13.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 19:14:01 -0700 (PDT) Subject: Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework To: Theodore Ts'o , Greg KH , Brendan Higgins , keescook@google.com, kieran.bingham@ideasonboard.com, mcgrof@kernel.org, robh@kernel.org, sboyd@kernel.org, shuah@kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-nvdimm@lists.01.org, linux-um@lists.infradead.org, Alexander.Levin@microsoft.com, Tim.Bird@sony.com, amir73il@gmail.com, dan.carpenter@oracle.com, dan.j.williams@intel.com, daniel@ffwll.ch, jdike@addtoit.com, joel@jms.id.au, julia.lawall@lip6.fr, khilman@baylibre.com, knut.omang@oracle.com, logang@deltatee.com, mpe@ellerman.id.au, pmladek@suse.com, richard@nod.at, rientjes@google.com, rostedt@goodmis.org, wfg@linux.intel.com References: <20190501230126.229218-1-brendanhiggins@google.com> <54940124-50df-16ec-1a32-ad794ee05da7@gmail.com> <20190507080119.GB28121@kroah.com> <20190509015856.GB7031@mit.edu> From: Frank Rowand Message-ID: <580e092f-fa4e-eedc-9e9a-a57dd085f0a6@gmail.com> Date: Wed, 8 May 2019 19:13:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190509015856.GB7031@mit.edu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/8/19 6:58 PM, Theodore Ts'o wrote: > On Wed, May 08, 2019 at 05:43:35PM -0700, Frank Rowand wrote: >> kselftest provides a mechanism for in-kernel tests via modules. For >> example, see: >> >> tools/testing/selftests/vm/run_vmtests invokes: >> tools/testing/selftests/vm/test_vmalloc.sh >> loads module: >> test_vmalloc >> (which is built from lib/test_vmalloc.c if CONFIG_TEST_VMALLOC) > > The majority of the kselftests are implemented as userspace programs. Non-argument. > You *can* run in-kernel test using modules; but there is no framework > for the in-kernel code found in the test modules, which means each of > the in-kernel code has to create their own in-kernel test > infrastructure. Why create an entire new subsystem (KUnit) when you can add a header file (and .c code as appropriate) that outputs the proper TAP formatted results from kselftest kernel test modules? There are already a multitude of in kernel test modules used by kselftest. It would be good if they all used a common TAP compliant mechanism to report results. > That's much like saying you can use vice grips to turn a nut or > bolt-head. You *can*, but it might be that using a monkey wrench > would be a much better tool that is much easier. > > What would you say to a wood worker objecting that a toolbox should > contain a monkey wrench because he already knows how to use vise > grips, and his tiny brain shouldn't be forced to learn how to use a > wrench when he knows how to use a vise grip, which is a perfectly good > tool? > > If you want to use vice grips as a hammer, screwdriver, monkey wrench, > etc. there's nothing stopping you from doing that. But it's not fair > to object to other people who might want to use better tools. > > The reality is that we have a lot of testing tools. It's not just > kselftests. There is xfstests for file system code, blktests for > block layer tests, etc. We use the right tool for the right job. More specious arguments. -Frank > > - Ted >