Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp71241imp; Tue, 19 Feb 2019 18:24:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IY+IzhT0uSxvsThQzZKEoxT4Ba6555v/AkjZj+f3ydZCaCs4eLgUblGk/nEnF5Uel6R//GP X-Received: by 2002:a62:29c3:: with SMTP id p186mr32891444pfp.117.1550629487897; Tue, 19 Feb 2019 18:24:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550629487; cv=none; d=google.com; s=arc-20160816; b=Jhs9KOp2xSNSb+eO+MiJN6dyf66gfG1aewAU3TBoUDmF88e7Yzzw+/CjhOqykkOg85 O0nBncezRUc8Y8jEaCg5A7S/HG0snzh/KH2l/ZrHF9GZvZA68/Sape9bjRJYLM+Xrceu FGSEbbkRKNVm1vHZfQ4EeVWBU1gQegxFJy0OouXwpPYXyBiCnug7iIrdAY2sL0v5Z6cV n8ogELvA9djCij8RDqh79KnADG3UMAXVxSH8i9XupfU4rXuPg2RBcNlFMbgz9mB+BEPx f8lu+j3s0itrPxwEUrBnsPvZwD7yeOewqxwiN6wd/mg/4adBFzUyMDh7W0DMEGyyh9mG 8r/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=p+6hijqYPu402zQKk7EroqYgTIOuvbxJ8rrPDvz84Yc=; b=wT9QH34MnSiewmU0WvCvgT8nRGcXkqAGdLB1fJefu1vSiCaTFe4zekx1EEGE6l4paL IctmrWLsLGlioasFiqfAZ7o5F9V1mNqpbd+Q+HtymbaqnYGp8Vp6aVmkbEsdt3ofgAlr CvpBDfgk1eZnNFc3Log1CVHkJAROx7EkkJz54LNso1hZZHJD5M1py7p26ngWV5cAZSnL +MfMIJbTG6utMMTn4OGFTjUSQObEoBgKzAnWPmKJzGvIy9ppM8J1R9fKty1uwq214N2a yDskbH2NRmCuGrP+YM+iPYgB5PcbampFFdf0y++3Is2y+u1TdN4SRS6SPelnIXocEi8/ FBTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ywc+TnJd; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si16387894pgv.431.2019.02.19.18.24.33; Tue, 19 Feb 2019 18:24:47 -0800 (PST) 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=@google.com header.s=20161025 header.b=Ywc+TnJd; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730162AbfBTCYN (ORCPT + 99 others); Tue, 19 Feb 2019 21:24:13 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:47061 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726235AbfBTCYM (ORCPT ); Tue, 19 Feb 2019 21:24:12 -0500 Received: by mail-ot1-f67.google.com with SMTP id c18so16099594otl.13 for ; Tue, 19 Feb 2019 18:24:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p+6hijqYPu402zQKk7EroqYgTIOuvbxJ8rrPDvz84Yc=; b=Ywc+TnJdRagr+5KkSdvVBkKWB31o+8T2vCbJaTJ+o8owoan9WJ4lOyYM565mv2rM+6 qjjb/VMayAyKTSB0NejMWlw+D6Rip4Du9dtsIv39aKG2Mw0oxP/zuCjbrJtw5uq7ehw6 4E3uHLilip57LxyejMpdq4hzr/VQ6EeLPerXhp8d162qu5PxRMau7Jb0DdruyqGbu0SY YBYKrXiiXlM86X5IvZTUSFP2dm7ZqCWdbNlTGmZbZvqO/N2jqJpH1x5mczF/7diTmZ9h Wvdu6U5K6jlO66E3NbUeBRCf8Pscs5hqm5X/ztJmhJns+3N+kVoJlU1aIBJ+LViFPWnf 0gdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p+6hijqYPu402zQKk7EroqYgTIOuvbxJ8rrPDvz84Yc=; b=feMOwoLdtOV9brPyDn9u4RBcxmL1kMgH0ER6uPxth+KLldzApDrVjCtERLz5CzTvk0 iiDcvGJiLR4Knl8mTB+nsGCTgRqo1Aomy5UBJIOF8NGvNRN7r7Bbbc1NURfLV9i/gklD kUGFcEVapUg1q7FxcpLOGOx4DQBPdV5JQsumDuh1tybgLWD24fpzY8s9+3gagIMrs1ih LA7Te1fT78X5SAN+ZABAFzKoq74JmXu1rVIk0RCgmItmiTGtSflfhSypjOIzQO58et8J nI9VzgcwLeFyAN01S2uPkvpQGUoMXtknn24OCA3NjJEP0RGXepaY3tWbbVzgYJEg8xHv 2lQA== X-Gm-Message-State: AHQUAub44RiC2BDHlbOCLNoaKbLvLCqW9gpoxllbUqp1tZlI1//JT4Ot v3DJofQLt/mNCSLaFPr0pKlAasPVcyo9guX5sQtRtw== X-Received: by 2002:aca:c6d5:: with SMTP id w204mr4531258oif.137.1550629451771; Tue, 19 Feb 2019 18:24:11 -0800 (PST) MIME-Version: 1.0 References: <20190214213729.21702-1-brendanhiggins@google.com> <20190214213729.21702-16-brendanhiggins@google.com> In-Reply-To: From: Brendan Higgins Date: Tue, 19 Feb 2019 18:24:00 -0800 Message-ID: Subject: Re: [RFC v4 15/17] of: unittest: migrate tests to run on KUnit To: Frank Rowand Cc: Kees Cook , Luis Chamberlain , shuah@kernel.org, Rob Herring , Kieran Bingham , Greg KH , Joel Stanley , Michael Ellerman , Joe Perches , brakmo@fb.com, Steven Rostedt , "Bird, Timothy" , Kevin Hilman , Julia Lawall , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Linux Kernel Mailing List , Jeff Dike , Richard Weinberger , linux-um@lists.infradead.org, Daniel Vetter , dri-devel , Dan Williams , linux-nvdimm , Knut Omang , devicetree , Petr Mladek , Sasha Levin , amir73il@gmail.com, dan.carpenter@oracle.com, wfg@linux.intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 15, 2019 at 4:24 PM Frank Rowand wrote: > > On 2/14/19 1:37 PM, Brendan Higgins wrote: > > Migrate tests without any cleanup, or modifying test logic in anyway to > > run under KUnit using the KUnit expectation and assertion API. > > > > Signed-off-by: Brendan Higgins > > --- > > drivers/of/Kconfig | 1 + > > drivers/of/unittest.c | 1310 +++++++++++++++++++++-------------------- > > 2 files changed, 671 insertions(+), 640 deletions(-) > > > > diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig > > index ad3fcad4d75b8..f309399deac20 100644 > > --- a/drivers/of/Kconfig > > +++ b/drivers/of/Kconfig > > @@ -15,6 +15,7 @@ if OF > > config OF_UNITTEST > > bool "Device Tree runtime unit tests" > > depends on !SPARC > > + depends on KUNIT > > select IRQ_DOMAIN > > select OF_EARLY_FLATTREE > > select OF_RESOLVE > > diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c > > These comments are from applying the patches to 5.0-rc3. > > The final hunk of this patch fails to apply because it depends upon > > [PATCH v1 0/1] of: unittest: unflatten device tree on UML when testing. > Whoops, I probably should have made a note of that in the commit description or cover letter, sorry. > If I apply that patch then I can apply patches 15 through 17. > > If I apply patches 1 through 14 and boot the uml kernel then the devicetree > unittest result is: > > ### dt-test ### FAIL of_unittest_overlay_high_level():2372 overlay_base_root not initialized > ### dt-test ### end of unittest - 219 passed, 1 failed > > This is as expected from your previous reports, and is fixed after > applying > > [PATCH v1 0/1] of: unittest: unflatten device tree on UML when testing. > > with the devicetree unittest result of: > > ### dt-test ### end of unittest - 224 passed, 0 failed > > After adding patch 15, there are a lot of "unittest internal error" messages. Yeah, I meant to ask you about that. I thought it was due to a change you made, but after further examination, just now, I found it was my fault. Sorry for not mentioning that anywhere. I will fix it in v5. Thanks!