Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1026746ybi; Fri, 21 Jun 2019 12:21:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ1FWHz9ObC5Igue+Ve925+u3NYtZ2MF1yaqUNt8ffveqNIdES57CKFWgUbCyLwsDjlu1m X-Received: by 2002:a17:90a:730b:: with SMTP id m11mr8596335pjk.89.1561144884805; Fri, 21 Jun 2019 12:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561144884; cv=none; d=google.com; s=arc-20160816; b=ei1QbV5aPnoqg9nUlrITz/1BwJsazJfyBufj6lqRqntNIolDLxcR1d4QuzYl3fBE4C z6NHzXddF2oqXq8/HZzdxa676EmaqRnj69EirDb52RYjuRRiZB96nCUTdv8nmxC9XJF9 h2tsD60uTGIoYtGGo2gBlmwS/G5xrKoHotgpF1LD5K7bxELxZHsCMz1PWZnikGjTIVsn SFj6pL1hJIh1vajqfNGwKzvIV7giV/YOSn1/n4lZmlP5c91SmHzcWprP5oWdVIwVTGCA yEhlqxLSUN0bcNp+pM5Z8tf6jMGKGE7nQU/bB/WXZuA3lsWmKJiyaEO6I3CLsi6NimJk kU2g== 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=O+iEgA8q4Kfo7n/VkAaM23lzeTxrplAZrGFnNpHtkMw=; b=mBOEYkgm6aEUYFojgWF2KQJGNkk3W6gHw8unQia1uFvnlo4Aq70SaSTUeBpRaAzYJ3 Qc1P5yWdIkGSbSO4PKZqvgMnknvs0MAWP87u1pzKNoPEbGrp9OOQm/+LR+M3vFGS26g+ 7scBiq04SCEGV3UPvzf3AWhCwfqFY6C+Yysj+JYnMECk1ye9vP6GkJLxxGQkJhUaV2so wKi88MO/Sn6WR7g15mpYebGewj3JRaz5+v/Dn9MeOUs7AUaabxMRNQ54lip3Tcx2lNK5 p9/W/5+9owtNq8TGiwx3Okqn1QqQkl38+Eb17PI3lDvh8NWNMKsOsi3eFYhTr3f7zirr atmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rOFoGcMj; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si3443871pla.154.2019.06.21.12.21.07; Fri, 21 Jun 2019 12:21:24 -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=@kernel.org header.s=default header.b=rOFoGcMj; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726437AbfFUTVD (ORCPT + 99 others); Fri, 21 Jun 2019 15:21:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:58878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfFUTVD (ORCPT ); Fri, 21 Jun 2019 15:21:03 -0400 Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6B5A92083B; Fri, 21 Jun 2019 19:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561144861; bh=iSLE8vYN1CVyQpDZAjB5wUepW90aWW8GZV7fiOhOYLI=; h=Subject:To:References:From:Date:In-Reply-To:From; b=rOFoGcMjhktMurUdgbCbMpH3CuYbo8f6qv7k7t5ZU+gIRgWY3jvHjiKlvUH/4gtGc tkaS0EnLDQaBH4l1BqZoXz0YVlaxT1A7Gl2P40Psq6fLWLtfADeY2VcXqK9sRP2COc 9m3M+jF/ht6KFuEDIJyo7S5GsVZembQBcUNReF8I= Subject: Re: [PATCH v5 00/18] kunit: introduce KUnit, the Linux kernel unit testing framework To: Theodore Ts'o , Frank Rowand , Brendan Higgins , gregkh@linuxfoundation.org, jpoimboe@redhat.com, keescook@google.com, kieran.bingham@ideasonboard.com, mcgrof@kernel.org, peterz@infradead.org, robh@kernel.org, sboyd@kernel.org, yamada.masahiro@socionext.com, 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, 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, rdunlap@infradead.org, richard@nod.at, rientjes@google.com, rostedt@goodmis.org, wfg@linux.intel.com, shuah References: <20190617082613.109131-1-brendanhiggins@google.com> <10feac3e-7621-65e5-fbf0-9c63fcbe09c9@gmail.com> <69809117-dcda-160a-ee0a-d1d3b4c5cd8a@kernel.org> <20190621181342.GA17166@mit.edu> From: shuah Message-ID: <6f3f5184-d14e-1b46-17f1-391ee67e699c@kernel.org> Date: Fri, 21 Jun 2019 13:20:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190621181342.GA17166@mit.edu> Content-Type: text/plain; charset=utf-8; format=flowed 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 6/21/19 12:13 PM, Theodore Ts'o wrote: > On Fri, Jun 21, 2019 at 08:59:48AM -0600, shuah wrote: >>>> ### But wait! Doesn't kselftest support in kernel testing?! >>>> >>>> .... >> >> I think I commented on this before. I agree with the statement that >> there is no overlap between Kselftest and KUnit. I would like see this >> removed. Kselftest module support supports use-cases KUnit won't be able >> to. I can build an kernel with Kselftest test modules and use it in the >> filed to load and run tests if I need to debug a problem and get data >> from a system. I can't do that with KUnit. >> >> In my mind, I am not viewing this as which is better. Kselftest and >> KUnit both have their place in the kernel development process. It isn't >> productive and/or necessary to comparing Kselftest and KUnit without a >> good understanding of the problem spaces for each of these. >> >> I would strongly recommend not making reference to Kselftest and talk >> about what KUnit offers. > > Shuah, > > Just to recall the history, this section of the FAQ was added to rebut > the ***very*** strong statements that Frank made that there was > overlap between Kselftest and Kunit, and that having too many ways for > kernel developers to do the identical thing was harmful (he said it > was too much of a burden on a kernel developer) --- and this was an > argument for not including Kunit in the upstream kernel. > > If we're past that objection, then perhaps this section can be > dropped, but there's a very good reason why it was there. I wouldn't > Brendan to be accused of ignoring feedback from those who reviewed his > patches. :-) > Agreed. I understand that this FAQ probably was needed at one time and Brendan added it to address the concerns. I think at some point we do need to have a document that outlines when to KUnit and when to use Kselftest modules. I think one concern people have is that if KUnit is perceived as a replacement for Ksefltest module, Kselftest module will be ignored leaving users without the ability to build and run with Kselftest modules and load them on a need basis to gather data on a systems that aren't dedicated strictly for testing. I am trying to move the conversation forward from KUnit vs. Kselftest modules discussion to which problem areas each one addresses keeping in mind that it is not about which is better. Kselftest and KUnit both have their place in the kernel development process. We just have to be clear on usage as we write tests for each. thanks, -- Shuah