Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3666380img; Mon, 25 Mar 2019 15:16:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKhF+Lietb4Wv4iBPLXfuZ362wuLFJ8toOddTd6O9ybYObEKV7QoJlXs7Z4Qtkz+LpGnyk X-Received: by 2002:a65:5189:: with SMTP id h9mr25063727pgq.304.1553552216547; Mon, 25 Mar 2019 15:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553552216; cv=none; d=google.com; s=arc-20160816; b=FJLRX3SCLz+MNbXJ5ReF/3ch7aOen+VC7bRCX5V95VbJtba4A/kBRm0I/0nEqH3uA0 wYiT875GJ3mfshHGlSrpzzvzkc2UGlwzaM7gQ4QWWe/1Bg0CGzY4V2xSF8gANPBObcqs xblSFVY59h5jBtnhABaljr07abjnZWD7cwt3+sRoDQrNcpXnQV0LO33slYUdb8OPP45c HvhfoB6p+7/G71qB8k0rNaXHlhDpM6AXnzlhp3wfYxqe7fKXzvoY1Xi9tX+wgFl4izr2 dQTjEK39actoaSIUXKI4+aMXN28kFpOc0+D2qWqiR2I4WS8wjGZuE0++izLMt1O3yqj6 fBWA== 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=mgKLCtqSYr9Ki4yiAt+9HJ6QF4zuEc1vdaoGRfW6GoI=; b=AhBORvFeF/wbCAcbENi404Xz4A1DdCTwCDCl0nzijFQl6Y2vsuqKjT86sX/xXhN9pe 8rfQTCxh8lMxzkXRJkoDfK7SbDQHCpNKAjLpGwKlnTRLYp2NtqanDNa2X/Kg4WGvs8eT 6FVwHZ4xH1EVSvpx91rFGrGWOtR49A8pIRw/kxMFFpmEevGhTOSfrOXvbY7BwJK4vaMm +8HDkx7d8yZcBu3GfEdmSHKjwJ8bgYUGmLWqwPQZh/x2+o7mS/FwIwiNNF4jo/8qBkNo Ynkkr15eHHl3DkGhlg1Kb9Bvv5BrnmjG77wPcqqiE+kvun2PbsVk+vGw1YvFM05BRFqn guzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=I7giHjHD; 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 e5si14590025pgk.150.2019.03.25.15.16.41; Mon, 25 Mar 2019 15:16:56 -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=@google.com header.s=20161025 header.b=I7giHjHD; 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 S1730163AbfCYWP6 (ORCPT + 99 others); Mon, 25 Mar 2019 18:15:58 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:35320 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729106AbfCYWP5 (ORCPT ); Mon, 25 Mar 2019 18:15:57 -0400 Received: by mail-ot1-f68.google.com with SMTP id m10so2010007otp.2 for ; Mon, 25 Mar 2019 15:15:57 -0700 (PDT) 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=mgKLCtqSYr9Ki4yiAt+9HJ6QF4zuEc1vdaoGRfW6GoI=; b=I7giHjHDi8rVOI2Rj2M30ZWnci1QqF1BImghkOCQqbkje13vCYp3Rc0AsHiLMeHwOi sx1vSxztRJyOWKx1OErgkF2CXwfFK/vvkxVplF/sd0er2siDSXIVUGOVUpciqS9bD3ka xdx0pBvAiT2glVb+zBLmBjd6Go3N7eIFe1Rp5/i8Ki87yw0yboD8Ngj2SwRnOI3MLMZR 8xpY9MezFfwc47eyKMv7aqSzaxDdDoVv95460my0XDvqER2Bru4KdskOJLvnAYzlvWtC eE4USJmCRtoFqHt6T6jFj5yYM6LylCoN8j289p+tRM+4NInqi3ETTZ7o6xjWw23nqOGh 3RXQ== 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=mgKLCtqSYr9Ki4yiAt+9HJ6QF4zuEc1vdaoGRfW6GoI=; b=jsnKt1e//HXrX/elb0X/m/7FtZGaXK3CZEP+horytB8EoJuSkXHQnODJnfVFNFUzmn UQJvdX9zjh/FzpFQOHziq9edqS2F9NM0jb+h2xIpUKKa/TQVWKHQciaTO3vwKskwS+2M 4NNeNJ2aeMm9df7H7jaKDZ356MhtBuN2i++phpJpve73KxdKSwc8kPW8+rKGd9sFzRIY TMNe6luZPrUNfrg4o0ZXgtY/8YDuV9G5zmBqhMrF6DLsr2tq36dkh6Z0OJuA0yZD4oBX 9Qt5AVUZf+aWQuYwvHAofvNu9yMJK0FafEevXOHxT2jgzhi5YCgAkNwiGCnz+8M0QH+R 36EQ== X-Gm-Message-State: APjAAAWaXwZfpiV5wr9b2mi0yhZzyVk1hXvots/uyB+T45pvCvOEtmaM ma79Klhbwm4xOGXUzGWRlmYn8jIGmyOJzohHC1RpaA== X-Received: by 2002:a9d:73c2:: with SMTP id m2mr19133805otk.338.1553552156903; Mon, 25 Mar 2019 15:15:56 -0700 (PDT) MIME-Version: 1.0 References: <20181128193636.254378-1-brendanhiggins@google.com> <20181128193636.254378-19-brendanhiggins@google.com> <990bfc7d-dc5e-d8d3-c151-9b321ff2ac10@gmail.com> <88fe0546-7850-5bb4-9673-b1aef2dccb3e@gmail.com> <0e311e88-c4d4-e98d-1720-53a04bd526fc@gmail.com> <72cd1c5b-6f68-73ad-c8fd-f3a3268a0529@gmail.com> In-Reply-To: From: Brendan Higgins Date: Mon, 25 Mar 2019 15:15:45 -0700 Message-ID: Subject: Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest To: Frank Rowand Cc: Greg KH , Kees Cook , Luis Chamberlain , shuah@kernel.org, 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 , Rob Herring , Dan Williams , linux-nvdimm , Kieran Bingham , Knut Omang 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 Thu, Mar 21, 2019 at 6:47 PM Frank Rowand wrote: > > On 3/21/19 6:30 PM, Brendan Higgins wrote: > > On Thu, Mar 21, 2019 at 5:22 PM Frank Rowand wrote: > >> > >> On 2/27/19 7:52 PM, Brendan Higgins wrote: > > < snip > but thanks for the comments in the snipped section. > > > >> > >> Thanks for leaving 18/19 and 19/19 off in v4. > > > > Sure, no problem. It was pretty clear that it was a waste of both of > > our times to continue discussing those at this juncture. :-) > > > > Do you still want me to try to convert the DT not-exactly-unittest to > > KUnit? I would kind of prefer (I don't feel *super* strongly about the > > matter) we don't call it that since I was intending for it to be the > > flagship initial example, but I certainly don't mind trying to clean > > this patch up to get it up to snuff. It's really just a question of > > whether it is worth it to you. > > In the long term, if KUnit is adopted by the kernel, then I think it > probably makes sense for devicetree unittest to convert from using > our own unittest() function to report an individual test pass/fail > to instead use something like KUNIT_EXPECT_*() to provide more > consistent test messages to test frameworks. That is assuming > KUNIT_EXPECT_*() provides comparable functionality. I still have > not looked into that question since the converted tests (patch 15/17 > in v4) still does not execute without throwing internal errors. Sounds good. > > If that conversion occurred, I would also avoid the ASSERTs. Noted.