Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5341834yba; Mon, 13 May 2019 09:14:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8rfnTRkKP0urY0RFFh03SjYBs2F/0aacgQadJCM75OtHkM8C0SgSDO1KCYEodWcfHbMLt X-Received: by 2002:a65:430a:: with SMTP id j10mr32309533pgq.133.1557764066717; Mon, 13 May 2019 09:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557764066; cv=none; d=google.com; s=arc-20160816; b=JZoH4Y/6oIUSaajw5MLinhqjY8LnxhKAI6zey5tlyZQDLYtC9v0c5zWerMdNevI7Xl OoznKpKIr2LvGST6HzUetdpCZCQsBdQfgqZgEcELK2tK+Z41Cuo4IrYXwPhqB4O+QhOk QJlIm+O4wqX5oISDSBuUlRCpaNNG0kZ+MwQuzHOyy33kyL2auquyqjvsqoayTeqE/iTO gARI8T82Nwytji9Z3jNYoewFI8Y4tGW5PApsmM33csUQuK8PBZs2DJt95ZHkn+7Uz7+s IRJWZPCdGGVZe0hVm9rEQYykPqBaaDNNGMY8yd6z4UbqlsKDOA8awfSeedyqj9JxhclC eGKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:to:from:date:dkim-signature; bh=oa11tgFM6isQYlc2/lSr8+dtL7dz0FGS2ImXszdei94=; b=e1j57Sf5RHTWJ2LUi46QvlGvKUhufQDdHKXasoS/kSIA4NThDVquT66HqadkiIPXyz 5ugfIrBZm8JltpixJt3Ki69ev/L+oAn/PRoi974TKwhxqec869ykqBhPUYrGnWgqz53I 6tg87LttaDVPsTJnp2miRbmTaJ5QANvpGhibuOPfvTqKxamUXnE4pkZAkiXzaHuhnrBt fYhxqBSHo/G5oybhoGEVUrrSAihVDeS6SHK2VPnLSCojLTZUVtrgssG2x2JkWtEcXe8Q ka8u3nOOz3EOxVkH/x2aaeg/2J5bFwzUAE4qNxV+w2WGtRPXIfsiQmE2z8ID/vrBWOjX EFbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=lkK1jfdX; 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 j2si3262298pgh.192.2019.05.13.09.14.10; Mon, 13 May 2019 09:14:26 -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=fail header.i=@ffwll.ch header.s=google header.b=lkK1jfdX; 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 S1730178AbfEMOo7 (ORCPT + 99 others); Mon, 13 May 2019 10:44:59 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46974 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728133AbfEMOo6 (ORCPT ); Mon, 13 May 2019 10:44:58 -0400 Received: by mail-ed1-f66.google.com with SMTP id f37so17905183edb.13 for ; Mon, 13 May 2019 07:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oa11tgFM6isQYlc2/lSr8+dtL7dz0FGS2ImXszdei94=; b=lkK1jfdXRSWG4EOPXpNEsgoMZb8lUzm2FfYavTsrFBTY7w3Z4FVJ9cp/fBcnbUD9bK Frxw45KRQigXleUJaVccMl3gMpsrT0DKhj92T3OICo7PFH1ZWYiDKuhrJn4Bo6DXp0gB BN+9OOpk6LCzBYskBvabimkY7bAvWM5tFDS84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=oa11tgFM6isQYlc2/lSr8+dtL7dz0FGS2ImXszdei94=; b=qRqRYy+0ftvCkBq3xbtFv3QLlQDG8l9+euTLqT2GS6GF7TQoTSvHE/PLgZuYcTO802 P+kia/YPwO2Bu2nI2z9FAiOZuJVx+a6Os0uRmuNJ/EP/dZhjXiAKg+rWIkDQPNrfWFCV RX5TT29PIrnXu9kC0ydx8WEX3VPICs/Tahmlkq6mFq21XT03ChtN1rRUyDDxdoWWIdTg xdmAjoLbu2CXGDZCi6Kduezlb4U0cs8/sAPGi1Y00RormEYj0X8Y4NhI3qnpsWLshMYh jolixJe3t1RWX8QwbOsA1GIxNS8fJPl/srGjBaw4iodJMYd6l4YqHwDPSTYZoMfKTeoP m6pQ== X-Gm-Message-State: APjAAAXxqpd+/rsMXFURT42uKjSUwTBOFO8Mwiq0V4eNO0i8WBj7iotd 0zGqfNvgm7FzZL6c6701EHPaxg== X-Received: by 2002:a17:906:18b1:: with SMTP id c17mr22862891ejf.196.1557758696660; Mon, 13 May 2019 07:44:56 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id ox15sm1844293ejb.52.2019.05.13.07.44.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2019 07:44:55 -0700 (PDT) Date: Mon, 13 May 2019 16:44:51 +0200 From: Daniel Vetter To: Theodore Ts'o , Frank Rowand , Tim.Bird@sony.com, knut.omang@oracle.com, gregkh@linuxfoundation.org, brendanhiggins@google.com, 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, 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, logang@deltatee.com, mpe@ellerman.id.au, pmladek@suse.com, richard@nod.at, rientjes@google.com, rostedt@goodmis.org, wfg@linux.intel.com Subject: Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework Message-ID: <20190513144451.GQ17751@phenom.ffwll.local> Mail-Followup-To: Theodore Ts'o , Frank Rowand , Tim.Bird@sony.com, knut.omang@oracle.com, gregkh@linuxfoundation.org, brendanhiggins@google.com, 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, amir73il@gmail.com, dan.carpenter@oracle.com, dan.j.williams@intel.com, jdike@addtoit.com, joel@jms.id.au, julia.lawall@lip6.fr, khilman@baylibre.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: <20190509015856.GB7031@mit.edu> <580e092f-fa4e-eedc-9e9a-a57dd085f0a6@gmail.com> <20190509032017.GA29703@mit.edu> <7fd35df81c06f6eb319223a22e7b93f29926edb9.camel@oracle.com> <20190509133551.GD29703@mit.edu> <875c546d-9713-bb59-47e4-77a1d2c69a6d@gmail.com> <20190509214233.GA20877@mit.edu> <80c72e64-2665-bd51-f78c-97f50f9a53ba@gmail.com> <20190511173344.GA8507@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190511173344.GA8507@mit.edu> X-Operating-System: Linux phenom 4.14.0-3-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 11, 2019 at 01:33:44PM -0400, Theodore Ts'o wrote: > On Fri, May 10, 2019 at 02:12:40PM -0700, Frank Rowand wrote: > > However, the reply is incorrect. Kselftest in-kernel tests (which > > is the context here) can be configured as built in instead of as > > a module, and built in a UML kernel. The UML kernel can boot, > > running the in-kernel tests before UML attempts to invoke the > > init process. > > Um, Citation needed? > > I don't see any evidence for this in the kselftest documentation, nor > do I see any evidence of this in the kselftest Makefiles. > > There exists test modules in the kernel that run before the init > scripts run --- but that's not strictly speaking part of kselftests, > and do not have any kind of infrastructure. As noted, the > kselftests_harness header file fundamentally assumes that you are > running test code in userspace. Yeah I really like the "no userspace required at all" design of kunit, while still collecting results in a well-defined way (unless the current self-test that just run when you load the module, with maybe some kselftest ad-hoc wrapper around to collect the results). What I want to do long-term is to run these kernel unit tests as part of the build-testing, most likely in gitlab (sooner or later, for drm.git only ofc). So that people get their pull requests (and patch series, we have some ideas to tie this into patchwork) automatically tested for this super basic stuff. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch