Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10073375imu; Wed, 5 Dec 2018 15:44:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/WnRQBYoeKUiHxbA5f0fDftaJ0dqpqIvtbxjIAWqHL2sxyyOx8783xsyocIFB7NRU4rLf/+ X-Received: by 2002:a17:902:b112:: with SMTP id q18mr26119194plr.255.1544053444660; Wed, 05 Dec 2018 15:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544053444; cv=none; d=google.com; s=arc-20160816; b=zX2OgpBTMv7kbN9oAC9jMcRblVSuVhAu1UUzJcYGrVGZc/33zHWEraovAyhjpBNAns +DJZ7ZXuWUPRkgGcFENmEBC2qnoq+Z5f7dp03AIOe3g4jvu3h0xnZMp0B9qvp72Pg+Pg BZr6oz9y6S1FDyTduDKD8CND/jTUfwR8WSNh0EtSL7tBHRk9QxokISom9USm76DJfHmj sxlWU2om9BBJZPzFL/PI/i/l47zUcmx91MA/uLuLbIixmAgBELW0x6KIEdOuwhjQNz6I +CP05kYC68OXlOdGvW+nv9R4JwJ5ywouMraoYNfS0qO89+0gNGPAtFEA4jQde8LIgu++ 0XEA== 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=ILTDFbnKcrSbI/WOEOfgYOAsJJ/q92nb0Ki7PHqDm4c=; b=aUfJFdU4Nix68XFpM53yyknDbkGCZ5rmE1QAEDM/DTbmOLFRHUA6ek7jzIfME1NaVR T62208ix9wG+XY3DAeOE+NMonVpqqeXYZx0glXzT+hJt9nCt6qCt7hMQH1b062Z8fLkq 4AMuWJdK7DV2/Rb1DN3yor8ZkHELBvicJ1EXmqbRVQfSD8JLxBGkMJsS/dsXaNNi9Xfp yG0I7BeOxTBIh9D3Eo/P4ojyz1XANDN8mgOt8F3MZRq27Rk9I3he5+eiY/AkofzZlojU SQc+mPysKtQGcF7GifkVQnvph26psBS1jUmBmsqkT1fp4PMIb+01Q0bga/dHDyMIO6zO Copw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CUYFPLPn; 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 y27si19398897pga.459.2018.12.05.15.43.49; Wed, 05 Dec 2018 15:44:04 -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=CUYFPLPn; 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 S1728856AbeLEXm7 (ORCPT + 99 others); Wed, 5 Dec 2018 18:42:59 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45248 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727660AbeLEXm7 (ORCPT ); Wed, 5 Dec 2018 18:42:59 -0500 Received: by mail-ot1-f68.google.com with SMTP id 32so20337655ota.12 for ; Wed, 05 Dec 2018 15:42:58 -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=ILTDFbnKcrSbI/WOEOfgYOAsJJ/q92nb0Ki7PHqDm4c=; b=CUYFPLPnLvA7Y5BGp17YgnKx5e4b6OX2bXL+WGKSm3KAyKi7nAYMdlCvj4N+laipSe 8H260LRWs3dDuhYUQi5hp4K0QJmG7ZSgbyrHFMPJf+upLgsfJC3rkVxqhCuTZFd+hYFD 3dy6ngOp7+Y97nR40MTG5gQDk78bpi0HSSJzW6eG//BGWt9TiwgeWLxQG7qzWQNyJwW5 hRsim8VeFtPmVZQoqDFrbNkkvWt9/x40bbi9GLbfLvJ/c91ZORM5jBC0NtRGxLRla/aE iteAghzeATzNPgcW8+xNz3l5ddTGw3veo/gDTs+Pph/cm2gm4sInt4cFJzyyhqaR0Xfl 3xeA== 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=ILTDFbnKcrSbI/WOEOfgYOAsJJ/q92nb0Ki7PHqDm4c=; b=t0o96AxUDUv/9en6lxvurnQ1xMcnLeAs16kv+rEwenfTNLNAwJSOiFeOx0iwyI1TRk bEN2L1CKS4XdXq3QEKRyy8oeUpbmvBSOd06OXKZPECXtily3d9DsYjr9x29D5YEWQLcQ dnUsiT0+N+vPUXXmsjUXZT1IZlOO9/Ja9nIC165vZm4zxqK51s4CWcRkFIK2GCJ2rYzy RTkt7Ec9aSIArF/Keg0UeA91hVTLF7s+VY1CpuzNRkLO6MkM3ic+JG2KmHu018JEGbSL RMCV4v9siq/MYWi8FLqYpUOegW6Q5ZkBuGEcG+WmxldN8Qv4Dz1d+19CGG/BNKPCKTaT V0Ig== X-Gm-Message-State: AA+aEWaG72XFaTfirOqRFaTn3iqFyJbF0gOm8I8bVemgPPAX0BonsTqN 4O8gR2mfpCO3SzUJ+JXCTA4u8h5CzhPR8+G88NPsJg== X-Received: by 2002:a9d:3ac:: with SMTP id f41mr15878232otf.98.1544053377755; Wed, 05 Dec 2018 15:42:57 -0800 (PST) MIME-Version: 1.0 References: <20181128193636.254378-1-brendanhiggins@google.com> <20181128193636.254378-18-brendanhiggins@google.com> <18814973-8f0a-4647-a097-fcc3dc0b3cd3@infradead.org> In-Reply-To: From: Brendan Higgins Date: Wed, 5 Dec 2018 15:42:46 -0800 Message-ID: Subject: Re: [RFC v3 17/19] of: unittest: migrate tests to run on KUnit To: Rob Herring Cc: Randy Dunlap , 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, Frank Rowand , 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 Tue, Dec 4, 2018 at 5:41 AM Rob Herring wrote: > > On Mon, Dec 3, 2018 at 6:14 PM Brendan Higgins > wrote: > > > > On Thu, Nov 29, 2018 at 4:40 PM Randy Dunlap wrote: > > > > > > On 11/28/18 12:56 PM, Rob Herring wrote: > > > >> 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 > > > > Unless KUNIT has depends, better to be a select here. > > > > > > That's just style or taste. I would prefer to use depends > > > instead of select, but that's also just my preference. > > > > I prefer depends too, but Rob is the maintainer here. > > Well, we should be consistent, not the follow the whims of each maintainer. Sorry, I don't think that came out the way I meant it. I don't really think we are consistent on this point across the kernel, and I don't feel very strongly about the point, so I was just looking to follow the path of least resistance. (I also just assumed Rob would keep us consistent within drivers/of/.) I figure if we are running unit tests from the test runner script or from an automated system, you won't be hunting for dependencies for a single test every time you want to run a test, so select doesn't make it easier to configure in most imagined use cases. KUNIT hypothetically should not depend on anything, so select should be safe to use. On the other hand, if we end up being wrong on this point and KUnit gains widespread adoption, I would prefer not to be in a position where I have to change a bunch of configs all over the kernel because this example got copied and pasted.