Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp788739img; Thu, 21 Mar 2019 08:58:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSwEB7WpXGGe9J1ZGbjAMyK6cYoBXSh7U9Hg/voNfqZcbax9R1bLMWHCQN89BvjGjxilhh X-Received: by 2002:a63:1912:: with SMTP id z18mr4086610pgl.115.1553183919774; Thu, 21 Mar 2019 08:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553183919; cv=none; d=google.com; s=arc-20160816; b=wTWylzPv+6WGgxtGd9OepbUo3aZfugV6EcMwKGc8A+c09lcgKSoc6o2mqyTtplgydJ k4XeexSWTknFGZIP6x7dBf6jBWD1otRgv1QNrPup63MaOY/l9SiK+PhLoSxVwJT4BQfx q9r7XgB2pOXmEAKYowlAYhLZ3t1w7sjFeLLgTvdZBNX1SET7CiPh+rL9RFAM9ZWwFaUg lZzfHh7Un2MdD005spCHoEJqHz7V61icP8dSoEljw+r4jH6Kdq+bpygFJaZfOGMpkjb4 NsgOOQ+UPwMvmLReXRZMYBwpOZ87mZqoWFjxFSynyymW4rSJFhRDeSJESBYa0DquY6pa 1Ksw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=XcsMzuZMr5k0x086xAGve3Hn9XeOLJNDW/vkb1wM7i8=; b=GAxneTs2iv5AqKwQq1DkdCKMLoxV2FfK9ntlPTdEKvRkE5I88AtsRx5geg65PT463u rvBV7kz3ddFBM6S3bnGJF6g4lE0U5iDnZuCJCtXkpdK2bQv8EWaR1iNT6inueYZ3V6DM KcROX9haXjWARFnPlqILEsoSJEbfKHH9TBFJJVndMeAutblPKXew8IAoK2n/Br/Yd4RS pMyKfRbJpuGHtc23qY1oYhko4Z9cpsPRZcPPG8wtfVdVPP2DL0b5Hq9Uca5OdngZb4rn T/hK31c6mBrWue9cV/aZtkfgKSKcALGqNFitpCQ0sAi1nqzTsq8aPr9TIKYGU1aA2ZUB 4vBg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si3053378pgv.100.2019.03.21.08.58.21; Thu, 21 Mar 2019 08:58:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728553AbfCUP4g (ORCPT + 99 others); Thu, 21 Mar 2019 11:56:36 -0400 Received: from ale.deltatee.com ([207.54.116.67]:51320 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbfCUP4g (ORCPT ); Thu, 21 Mar 2019 11:56:36 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1h703H-00043G-7V; Thu, 21 Mar 2019 09:56:20 -0600 To: Knut Omang , Brendan Higgins , keescook@google.com, mcgrof@kernel.org, shuah@kernel.org, robh@kernel.org, kieran.bingham@ideasonboard.com, frowand.list@gmail.com Cc: gregkh@linuxfoundation.org, joel@jms.id.au, mpe@ellerman.id.au, joe@perches.com, brakmo@fb.com, rostedt@goodmis.org, Tim.Bird@sony.com, khilman@baylibre.com, julia.lawall@lip6.fr, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, jdike@addtoit.com, richard@nod.at, linux-um@lists.infradead.org, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, dan.j.williams@intel.com, linux-nvdimm@lists.01.org, devicetree@vger.kernel.org, pmladek@suse.com, Alexander.Levin@microsoft.com, amir73il@gmail.com, dan.carpenter@oracle.com, wfg@linux.intel.com References: <20190214213729.21702-1-brendanhiggins@google.com> <6d9b3b21-1179-3a45-7545-30aa15306cb4@deltatee.com> <01b2a950f661e8ebd6acbc45c2f89c8f10063daf.camel@oracle.com> From: Logan Gunthorpe Message-ID: Date: Thu, 21 Mar 2019 09:56:10 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <01b2a950f661e8ebd6acbc45c2f89c8f10063daf.camel@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: wfg@linux.intel.com, dan.carpenter@oracle.com, amir73il@gmail.com, Alexander.Levin@microsoft.com, pmladek@suse.com, devicetree@vger.kernel.org, linux-nvdimm@lists.01.org, dan.j.williams@intel.com, dri-devel@lists.freedesktop.org, daniel@ffwll.ch, linux-um@lists.infradead.org, richard@nod.at, jdike@addtoit.com, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, julia.lawall@lip6.fr, khilman@baylibre.com, Tim.Bird@sony.com, rostedt@goodmis.org, brakmo@fb.com, joe@perches.com, mpe@ellerman.id.au, joel@jms.id.au, gregkh@linuxfoundation.org, frowand.list@gmail.com, kieran.bingham@ideasonboard.com, robh@kernel.org, shuah@kernel.org, mcgrof@kernel.org, keescook@google.com, brendanhiggins@google.com, knut.omang@oracle.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [RFC v4 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-03-20 11:23 p.m., Knut Omang wrote: > Testing drivers, hardware and firmware within production kernels was the use > case that inspired KTF (Kernel Test Framework). Currently KTF is available as a > standalone git repository. That's been the most efficient form for us so far, > as we typically want tests to be developed once but deployed on many different > kernel versions simultaneously, as part of continuous integration. Interesting. It seems like it's really in direct competition with KUnit. I didn't really go into it in too much detail but these are my thoughts: From a developer perspective I think KTF not being in the kernel tree is a huge negative. I want minimal effort to include my tests in a patch series and minimal effort for other developers to be able to use them. Needing to submit these tests to another project or use another project to run them is too much friction. Also I think the goal of having tests that run on any kernel version is a pipe dream. You'd absolutely need a way to encode which kernel versions a test is expected to pass on because the tests might not make sense until a feature is finished in upstream. And this makes it even harder to develop these tests because, when we write them, we might not even know which kernel version the feature will be added to. Similarly, if a feature is removed or substantially changed, someone will have to do a patch to disable the test for subsequent kernel versions and create a new test for changed features. So, IMO, tests absolutely have to be part of the kernel tree so they can be changed with the respective features they test. Kunit's ability to run without having to build and run the entire kernel is also a huge plus. (Assuming there's a way to get around the build dependency issues). Because of this, it can be very quick to run these tests which makes development a *lot* easier seeing you don't have to reboot a machine every time you want to test a fix. Logan