Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp371489ybj; Wed, 6 May 2020 20:26:18 -0700 (PDT) X-Google-Smtp-Source: APiQypKyx2YULXgwrIjqwvLUjPnjmTNK4GOtzIeTBK37bEfeb4akK2XsCObRyAMi4zDVcsB6xby1 X-Received: by 2002:a17:906:2d4a:: with SMTP id e10mr10479696eji.222.1588821978364; Wed, 06 May 2020 20:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588821978; cv=none; d=google.com; s=arc-20160816; b=MyVDlhfF8iexRqckn87dGDs6klowFVOPe9kv7MRgsEn1pZKNEChzQp1Dy4Vx+6J+kZ lOp4zgMsm57r5Yl8o1NDAyRG1/RD+CchpdrQbr5quku1K+tzynuhlf9C7MLs3RE6X9dc Xk4vSwGSmP8c4IXl5jET/oLW8BcdUKd2+dUhJsV9MGy7vn8lZ1EwCw3MsFpJt5KnLnyr HHOzkFMx9Sq/Kn1sIXHVStrMvii69hKj04ZCz6chDt/qnjI63D9NJJXSBS34CEm0DK2S r4Dc8JHLGUiHYPa/qdQoa3g75God9Yc+jOwIpTEE+mhxVdsdU5zVYaghm9owWDriDF+i h/dA== 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=OqklJJgxCrgioUG9/0U8VvVyNxzQPptp+H1kEoRUcfM=; b=h1sT2WmvwuefDPO/Es3ZSDdecYMBm7skIo3y7fxNw05XhcQjCIPuy3Pbr4NXEEEqot LvVesSRyFAEOJpGUMqpw38yquHeRw2HiRqhaqB5N8wfH1MUglmHgPzvjCrJm3yovpYEj j0ll9KnTIJHKmAdHfhxPpwwOlwdms1+xrWoESbZA6yROpgZHZ6JxgT4NeVQqVTgvP0eX W/gJ0aBgw8Y1WHD315ykDsf8XSvWqsM7E5DmW7LSS0CkNRNfTdCdRMiPCozEOEKTOkp1 dYoQuqnBVGf26gUGXtfxwIl7k9nVnRTWCi3XesSTAVWCtOhik2GnSKbIL+5JGE5z+02/ VXTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rbtQf4Gr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq7si2198487edb.319.2020.05.06.20.25.55; Wed, 06 May 2020 20:26:18 -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=@google.com header.s=20161025 header.b=rbtQf4Gr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726514AbgEGDRJ (ORCPT + 99 others); Wed, 6 May 2020 23:17:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726382AbgEGDRH (ORCPT ); Wed, 6 May 2020 23:17:07 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 595BBC0610D5 for ; Wed, 6 May 2020 20:17:07 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id e16so4517693wra.7 for ; Wed, 06 May 2020 20:17:07 -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=OqklJJgxCrgioUG9/0U8VvVyNxzQPptp+H1kEoRUcfM=; b=rbtQf4Gr1SzoNJgT+TsCpnOedFkDlsI4GqX3HIApmxx6nalsQhD7JafeN3haqKF95q 9FLfc0iLXRofGuj8xSvJr9fCGoEGljqW0AfmoM25AwFBMv01MhzQk74GjUBq8Hxt5HTu kF5LrtH67fdEpmW13BDlx/xM9q8ZC1pdAFNdCTsjb3r/+IQquQw3L1Mhmz5wPihbB8Oa RKcHl2HZ6Swg7Mv+wXEaoj0P119W8tJ06Y6nXdXSmuhhAUF7MuBwIDsA9MO0zAZToS3O JlWjOp3xPxrOLSgeM67Dve9aoviCMexgO0SwIEfM1UZpJ+jUSpQTzPg7wLqjsFeT0/pd XxWw== 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=OqklJJgxCrgioUG9/0U8VvVyNxzQPptp+H1kEoRUcfM=; b=HXTT3wNZyyCaF2RDA6B8dJXW68hd0eWFtLGTW/1Hi3c23mw894wVR/DbqqolA6YW9u wXU063617+3LRNOAdrL2nyPWuJJy8XfQkmSaynFN8FzE7aw9aJzUO50qrgJIZbXOQLXo wjLp5RLxMTeFPqqX3Zu7KgkZYFJg1UA0oehjMMOy0yoUV7xWKH+XUb7nzaqSHKYHjFH2 XWMosvIgk5qc2P2I6FM/qVqiXST66N4pNc7voRBbUiY6HW3VbyrlottMqT2jwP3l7pKU bYtyH0Gdp0QuCrxqU2nLn0zotkNH1AEDvHfb8nkRoijfynmXzytrpLCLl7XzJBD6wcT9 QNww== X-Gm-Message-State: AGi0PubBjWOPs5rymshQQdlMSGGi09npX7LHeL/aLwh5DGl2To/P58ko dNr2Fn1q+MbQ/P4vLrGXiHiFJUB1StMZlyRkcJ9KXg== X-Received: by 2002:adf:f907:: with SMTP id b7mr12664785wrr.203.1588821425549; Wed, 06 May 2020 20:17:05 -0700 (PDT) MIME-Version: 1.0 References: <20200505102709.7964-1-anders.roxell@linaro.org> In-Reply-To: <20200505102709.7964-1-anders.roxell@linaro.org> From: David Gow Date: Thu, 7 May 2020 11:16:54 +0800 Message-ID: Subject: Re: [PATCH v2 2/6] kunit: default KUNIT_* fragments to KUNIT_RUN_ALL To: Anders Roxell Cc: Brendan Higgins , John Johansen , jmorris@namei.org, serge@hallyn.com, "Theodore Ts'o" , adilger.kernel@dilger.ca, Greg Kroah-Hartman , Andrew Morton , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List , linux-ext4@vger.kernel.org, linux-security-module@vger.kernel.org, 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 On Tue, May 5, 2020 at 6:27 PM Anders Roxell wrote: > > This makes it easier to enable all KUnit fragments. > > Adding 'if !KUNIT_RUN_ALL' so individual test can be turned of if > someone wants that even though KUNIT_RUN_ALL is enabled. nit: Should this be "turned off" rather than "turned of" (and "individual tests" rather than "individual test"). It _may_ be worth re-wording it to explain the "if !KUNIT_RUN_ALL" change in more detail: that it's explicitly hiding the prompt if KUNIT_RUN_ALL is enabled. It's probably not worth redoing the patch just for this, but if you've got to re-do all these to change KUNIT_RUN_ALL to KUNIT_ALL_TESTS or similar, maybe. > > Signed-off-by: Anders Roxell Reviewed-by: David Gow > --- > lib/kunit/Kconfig | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/lib/kunit/Kconfig b/lib/kunit/Kconfig > index 537f37bc8400..e6a60391fa6b 100644 > --- a/lib/kunit/Kconfig > +++ b/lib/kunit/Kconfig > @@ -15,7 +15,8 @@ menuconfig KUNIT > if KUNIT > > config KUNIT_DEBUGFS > - bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" > + bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" if !KUNIT_RUN_ALL > + default KUNIT_RUN_ALL > help > Enable debugfs representation for kunit. Currently this consists > of /sys/kernel/debug/kunit//results files for each > @@ -23,7 +24,8 @@ config KUNIT_DEBUGFS > run that occurred. > > config KUNIT_TEST > - tristate "KUnit test for KUnit" > + tristate "KUnit test for KUnit" if !KUNIT_RUN_ALL > + default KUNIT_RUN_ALL > help > Enables the unit tests for the KUnit test framework. These tests test > the KUnit test framework itself; the tests are both written using > @@ -32,7 +34,8 @@ config KUNIT_TEST > expected. > > config KUNIT_EXAMPLE_TEST > - tristate "Example test for KUnit" > + tristate "Example test for KUnit" if !KUNIT_RUN_ALL > + default KUNIT_RUN_ALL > help > Enables an example unit test that illustrates some of the basic > features of KUnit. This test only exists to help new users understand > -- > 2.20.1 >