Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1691891ybj; Wed, 6 May 2020 03:34:32 -0700 (PDT) X-Google-Smtp-Source: APiQypJTOH6tQ45RtWOXbelCC60kjwIsmbg2MINN9G2aGIKWz/TNLhpMn4Dxj3cmOrSW9+94mhN+ X-Received: by 2002:a50:d79d:: with SMTP id w29mr5317415edi.187.1588761271924; Wed, 06 May 2020 03:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588761271; cv=none; d=google.com; s=arc-20160816; b=qsnTu5On3FW6kxPKOnVprb2NikIrpYHf+oYDD4izR1CROQyT2XY5U2WUb+LgUy6TdT sRRJFAoRVGy2ohOgX97MGUOCSMcBSfKjeFzqYhBIUEKmCq1pfAhtaFUnlDkZ5W4M3o4Z cNxsHiUcFnxIGX3nC8snQ7q6lTespU0pfEV6vdzKDmKXugjBqgrYvampotkzTexN9nqM 1fcmOK+Jpt2n/tAlcXFZw1L38ii47gfRCm4ecOz9yWZbqeFjtjMmF/WMexOYXmAzDKsC fwu+8zr2VaTrP48d+Le0Ggq97Ojl/vFCm0eE+51nc01MIFVgwuO/DN7/t3fsDsbYq/jD AhEA== 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=1rTt6LxaW/pHMjJunZzywGj8yOmnvtXY/IpJZLrkwj0=; b=rEp0RRT7NHRH4ipl/Uetlm5W3fm4WVmTIxdNzaEBiIH6hCaK8pp8zGBsiawZJWhM0q Ge9TDDT2nODb2cwtvlzJI1f1OjeGDEikoZZvl5I6S9Z5YZ9RRKcmpHxvgpdkRBVac273 h+2Yx4TKbyNUOiEJEsBxFDLRyGtmlbvlFp9KjubpUGp6Xn+j+oQY92GX03w9uI3X95tB bvBhjJHJIqeZm5JlX0uId9b46zUeqvFdjfu8BfzdtbfiMwXoSK9RVKJ99UtPsIK5/R2k G3GkLJOl7UqcJIT5e+C+F2KWg6qM/CAM3xKlOygPf5UyDNqZsIUbLSJlm4SLcFrKoYtS 004Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t4a2X1xZ; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o32si717888edb.380.2020.05.06.03.33.59; Wed, 06 May 2020 03:34:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t4a2X1xZ; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729003AbgEFKdx (ORCPT + 99 others); Wed, 6 May 2020 06:33:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728890AbgEFKdx (ORCPT ); Wed, 6 May 2020 06:33:53 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 677BDC061A10 for ; Wed, 6 May 2020 03:33:52 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id f11so1809080ljp.1 for ; Wed, 06 May 2020 03:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1rTt6LxaW/pHMjJunZzywGj8yOmnvtXY/IpJZLrkwj0=; b=t4a2X1xZecTMAZKKfKloaMIBbKbLsi4VpQyqIWN1xF0DyDh1wVaRehTCJaZg2McT5O HYJ0KfuCC6DXv3aXeqD5Vwy4k8q21/pCVGbunFsDZb2nIlgaBmr4apqE/EQpy/vLDkd8 MDFvBTOGgHO+TxmSLQWuOwNy0c8/4coKHUTxu7E6HNd55tCXva9mj7uHD+mT51/KMFJY r7xAp6VJy25G+mWIQlCsDnFPYbpy6PL53rJ6yRT3lmIiGyDyh2o3xfoVaOFXKwrLUCK4 UjpCSUmfaix/bg0gfEkdJxZbbPdK2P6v5+JGizRJ0BjnVRzmyAAhWA6MkzD4YvrXtSEb j/Hw== 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=1rTt6LxaW/pHMjJunZzywGj8yOmnvtXY/IpJZLrkwj0=; b=mLBQrOTED8pOtLdCgtjS7kkyYsTI4shAo1TOpRlQSmA6gOdZppa0Dkgq9sMxKDcoCy i5lS15PNO60BDxlPUgkajnahB84MAmZdGyd3FoUGxMYbZK6eKLDj0gThz2HVhGL9kUO5 /49L0v73p3c9ILaKgEQ2L7Rg1z5MMFDCpfpekmKtsGIf6hNTTnruNu7tR5WskhxAIWsG SR6zha4R3fUu7YB8+2kxNFGjBdaYDF3Dm/YIm6aM/FdsiJc4cOlBUk6x3enY7mon+xhU q3rMGGfTZNHf+7Ta63cjhExCecwe1XSANrXHlDOSkrK9/3h5VQEg8/8nQukIIw76yDhR ma4A== X-Gm-Message-State: AGi0PuZE/v7nwbbhtTPBGbXagnY0xORcXFUOsZRllRwZJttEdrzyIq6n YYNFp+1lHtxDlWIT868OcuAcP0IfrqN+tIXgrSEvFQ== X-Received: by 2002:a2e:9842:: with SMTP id e2mr4512086ljj.273.1588761230232; Wed, 06 May 2020 03:33:50 -0700 (PDT) MIME-Version: 1.0 References: <20200505102700.7912-1-anders.roxell@linaro.org> In-Reply-To: From: Anders Roxell Date: Wed, 6 May 2020 12:33:38 +0200 Message-ID: Subject: Re: [PATCH v2 1/6] kunit: Kconfig: enable a KUNIT_RUN_ALL fragment To: David Gow Cc: Brendan Higgins , John Johansen , James Morris , "Serge E. Hallyn" , "Theodore Ts'o" , Andreas Dilger , Greg Kroah-Hartman , Andrew Morton , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List , linux-ext4@vger.kernel.org, linux-security-module , Marco Elver Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi David, Thank you for the review. On Wed, 6 May 2020 at 07:08, David Gow wrote: > > On Tue, May 5, 2020 at 6:27 PM Anders Roxell wrote: > > > > Make it easier to enable all KUnit fragments. This is needed for kernel > > test-systems, so its easy to get all KUnit tests enabled and if new gets > > added they will be enabled as well. Fragments that has to be builtin > > will be missed if CONFIG_KUNIT_RUN_ALL is set as a module. > > > > Signed-off-by: Anders Roxell > > --- > > lib/kunit/Kconfig | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/lib/kunit/Kconfig b/lib/kunit/Kconfig > > index 95d12e3d6d95..537f37bc8400 100644 > > --- a/lib/kunit/Kconfig > > +++ b/lib/kunit/Kconfig > > @@ -41,4 +41,10 @@ config KUNIT_EXAMPLE_TEST > > is intended for curious hackers who would like to understand how to > > use KUnit for kernel development. > > > > +config KUNIT_RUN_ALL > > + tristate "KUnit run all test" > > I'm not 100% sure about this name and description. It only actually > "runs" the tests if they're builtin (as modules, they'll only run when > loaded). > > Would KUNIT_BUILD_ALL or KUNIT_ALL_TESTS I would like to go with KUNIT_ALL_TESTS if no one objects. > or similar be better? > > It also, as mentioned, only really runs all available (i.e., with > dependencies met in the current .config) tests (as distinct from the > --alltests flag to kunit.py, which builds UML with allyesconfig), it > might be good to add this to the description or help. > > Something like "Enable all KUnit tests" or "Enable all available KUnit > tests" (or even something about "all KUnit tests with satisfied > dependencies") might be clearer. I like "All KUnit tests with satisfied dependencies". > > > + help > > + Enables all KUnit tests, if they can be enabled. > > + That depends on if KUnit is enabled as a module or builtin. > > + > I like the first line here, but the second one could use a bit more > explanation. Maybe copy some of the boilerplate text from other tests, > e.g.: > > KUnit tests run during boot and output the results to the debug log > in TAP format (http://testanything.org/). Only useful for kernel devs > running the KUnit test harness, and not intended for inclusion into a > production build. > > For more information on KUnit and unit tests in general please refer > to the KUnit documentation in Documentation/dev-tools/kunit/. > > If unsure, say N. Makes much more sense, thanks. > > > endif # KUNIT > > -- > > 2.20.1 > > > > Otherwise, this is looking good. I've done some quick testing, and it > all seems to work for me. As long as it's clear what the difference > between this and other ways of running "all tests" (like the > --alltests kunit.py option), Do you think it should be made clearer in some way? > I'm all for including this in. > Cheers, Anders