From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2694D211E2F0B for ; Thu, 21 Mar 2019 17:27:58 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id l11so199144pgq.10 for ; Thu, 21 Mar 2019 17:27:58 -0700 (PDT) Subject: Re: [RFC v3 00/19] kunit: introduce KUnit, the Linux kernel unit testing framework References: <20181128193636.254378-1-brendanhiggins@google.com> From: Frank Rowand Message-ID: Date: Thu, 21 Mar 2019 17:27:54 -0700 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Brendan Higgins , Rob Herring Cc: brakmo@fb.com, dri-devel@lists.freedesktop.org, linux-kselftest@vger.kernel.org, shuah@kernel.org, linux-nvdimm@lists.01.org, richard@nod.at, Knut Omang , kieran.bingham@ideasonboard.com, Joel Stanley , jdike@addtoit.com, Tim.Bird@sony.com, Kees Cook , linux-um@lists.infradead.org, rostedt@goodmis.org, Julia Lawall , kunit-dev@googlegroups.com, Greg KH , Linux Kernel Mailing List , mcgrof@kernel.org, Daniel Vetter , mpe@ellerman.id.au, joe@perches.com, khilman@baylibre.com List-ID: On 12/5/18 3:10 PM, Brendan Higgins wrote: > On Tue, Dec 4, 2018 at 5:49 AM Rob Herring wrote: >> >> On Tue, Dec 4, 2018 at 5:40 AM Frank Rowand wrote: >>> >>> Hi Brendan, Rob, >>> >>> Pulling a comment from way back in the v1 patch thread: >>> >>> On 10/17/18 3:22 PM, Brendan Higgins wrote: >>>> On Wed, Oct 17, 2018 at 10:49 AM wrote: >>> >>> < snip > >>> >>>> The test and the code under test are linked together in the same >>>> binary and are compiled under Kbuild. Right now I am linking >>>> everything into a UML kernel, but I would ultimately like to make >>>> tests compile into completely independent test binaries. So each test >>>> file would get compiled into its own test binary and would link >>>> against only the code needed to run the test, but we are a bit of a >>>> ways off from that. >>> >>> I have never used UML, so you should expect naive questions from me, >>> exhibiting my lack of understanding. >>> >>> Does this mean that I have to build a UML architecture kernel to run >>> the KUnit tests? >> >> In this version of the patch series, yes. >> >>> *** Rob, if the answer is yes, then it seems like for my workflow, >>> which is to build for real ARM hardware, my work is doubled (or >>> worse), because for every patch/commit that I apply, I not only have >>> to build the ARM kernel and boot on the real hardware to test, I also >>> have to build the UML kernel and boot in UML. If that is correct >>> then I see this as a major problem for me. >> >> I've already raised this issue elsewhere in the series. Restricting >> the DT tests to UML is a non-starter. > > I have already stated my position elsewhere on the matter, but in > summary: Ensuring most tests can run without external dependencies > (hardware, VM, etc) has a lot of benefits and should be supported in > nearly all cases, but such tests should also work when compiled to run > on real hardware/VM; the tooling might not be as good in the latter > case, but I understand that there are good reasons to support it > nonetheless. And my needs are the exact opposite. My tests must run on real hardware, in the context of the real operating system subsystems and drivers potentially causing issues. It is useful if the tests can also run without that dependency. -Frank > > So I am going to try to add basic support for running tests on other > architectures in the next version or two. < snip > _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm