Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp188248img; Thu, 21 Mar 2019 17:29:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkswEHSwDxThSD9iUAPbC/kxCKWsFJDIW/29HnI7Hnhkkhq8HIDUrsiSl5cvDc/iiYUAKp X-Received: by 2002:a63:5266:: with SMTP id s38mr6071733pgl.333.1553214541622; Thu, 21 Mar 2019 17:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553214541; cv=none; d=google.com; s=arc-20160816; b=j7wFTkLZQTHhxUvcEpMFQdW2BB86dMCJKRfAFehXI7dgPcbqWl7kFuHWLaQRKcvC5F 3N9yTBZ9aO1MSNbdoM/jnSSt+Gf6kZ84pOU7zntJmvLkL1b03XSQutMCqarHink6Kyv/ 9x6+NdMiBLyeUgb9Jz2v3YtvDjy8UwO7GPEg64lty7e5KsPGFJf2Ec279+WjLm/6ID6F Ct+ZWYWrxvN1m9VJefAYQiRbyZNCWRniDjKxdTdngWUibBICxav4YVntAOoMduFg4bIE NE/qgJ4PvSFdX9q5ed25Kh8vIwymiyQlJiyElLy4o06k2zJDb6KZKAOTEpoPmRhpb3C7 ZAVw== 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:cc:to:subject:dkim-signature; bh=IsboZMZzpqO5S/0DS4OcY4AmfYrMhfnNfJkBZoSGcQU=; b=SQXbiCiV6i1DznKkGFxUGEZ/Ssq3F0oLQasAlxQGfheHfmV3eu0YQtM9VS//G+66+A +EfIVkiNgiCLSpDC84lHgGycJ1dPjVwA4Dx5H5wU89JG7vdtJSNbkMRUxXH52fQ9HKTC v4wQmADmBErbGEO+/3ynNG4LgUVcw+2cDSKjJ/2ozxFMNJ9AYhvF0P0JYfg4W09Y0Acz 3gthFAb3QMEd6j+ZPdzCgpRexA5n9Xaz6eGPqDabV5aQfjpGpfbm6SE46q22uG8e9ReB HCJxDTnbtbPCfI1OaGazVHBduUmBExljMHdK2DWYGD4tZ1qJxhS+y1IptQK1TKSOZZDK EfyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y1iECVvI; 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 k3si5499293pfb.100.2019.03.21.17.28.43; Thu, 21 Mar 2019 17:29:01 -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=Y1iECVvI; 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 S1727390AbfCVA16 (ORCPT + 99 others); Thu, 21 Mar 2019 20:27:58 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46949 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726695AbfCVA16 (ORCPT ); Thu, 21 Mar 2019 20:27:58 -0400 Received: by mail-pf1-f196.google.com with SMTP id 9so232119pfj.13; Thu, 21 Mar 2019 17:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IsboZMZzpqO5S/0DS4OcY4AmfYrMhfnNfJkBZoSGcQU=; b=Y1iECVvIVVSpwd9pAmqVNcGMmvzJCj9l/MRub8b+Vi2ThATVmBdw3MXvnXBWsYGuUI Fk2Kv4ylgKnkjuVhBGkJTkyTEiRSh+UdhZuaRic/RhB4sJqxi8tmyWEIVPpceZOTj7Wk KVJvRvC92QBC2YjIKbAcfYhYmfVeL6IiagsWWWkkOL+Q+/gXNnVz+GLcTlpHSPSyEeEk 9H2UN6LBjmb4zeOPfdoJvlgbqw2xBEEQZPRnuhzBu3P5fATt+8XDqPuFUcvhGenIogaA ARjQmYoTViiE2nRWjElg5RKaSAG+JaJM8Nw2Umv6B3DXKtqYLMWrC5bBWTHVKBSxKrn3 lPnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IsboZMZzpqO5S/0DS4OcY4AmfYrMhfnNfJkBZoSGcQU=; b=TJhSaGqzSM3bPmeEotS4cpshLOrA6CrGsKYy6ww3xHBCNf5coES5TpaFN0/ll71J17 r0exvE947H+q/Y+E26UdJ8/spuPmwHKDl3w/DjBjs9UMMRiPX3fU3qtm249E5PJ8Q8yV H8xUa7CBqrxhy8XijuE6yq41pmuMzYQG354EhoM8ZerCvICS4Ma1LpRFFXbdzK5NNtKd AxID7DinyF+wueXJJnIOQOhlfKbVcSsbgpGs6wIuKnxtu4G0XJnHSDrrFBoF+Go5F69I z//xpI3jEcrMi4mqWDUO/mh9P2GGB/AUBxxrkpKv04fJlrbqK5XwxdDosd4lyL7WyJEn D5tA== X-Gm-Message-State: APjAAAWA/cSooPtfh4mFdREmH+hSV5MKWVJRMqtoV4p2VdRnYD80xPS0 Xita9dpKSDt3y8PkDbtQX98= X-Received: by 2002:a62:1342:: with SMTP id b63mr6196962pfj.7.1553214477765; Thu, 21 Mar 2019 17:27:57 -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 z124sm13935947pfb.150.2019.03.21.17.27.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 17:27:56 -0700 (PDT) Subject: Re: [RFC v3 00/19] kunit: introduce KUnit, the Linux kernel unit testing framework To: Brendan Higgins , Rob Herring Cc: Greg KH , Kees Cook , mcgrof@kernel.org, shuah@kernel.org, Joel Stanley , mpe@ellerman.id.au, joe@perches.com, brakmo@fb.com, rostedt@goodmis.org, Tim.Bird@sony.com, khilman@baylibre.com, Julia Lawall , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Linux Kernel Mailing List , jdike@addtoit.com, richard@nod.at, linux-um@lists.infradead.org, Daniel Vetter , dri-devel@lists.freedesktop.org, dan.j.williams@intel.com, linux-nvdimm@lists.01.org, kieran.bingham@ideasonboard.com, Knut Omang References: <20181128193636.254378-1-brendanhiggins@google.com> From: Frank Rowand Message-ID: Date: Thu, 21 Mar 2019 17:27:54 -0700 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: 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 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 >