* [PATCH v2 4/6] drivers: base: default KUNIT_* fragments to KUNIT_RUN_ALL
@ 2020-05-05 10:27 Anders Roxell
2020-05-07 3:20 ` David Gow
0 siblings, 1 reply; 2+ messages in thread
From: Anders Roxell @ 2020-05-05 10:27 UTC (permalink / raw)
To: gregkh
Cc: john.johansen, jmorris, serge, tytso, adilger.kernel, akpm,
brendanhiggins, =linux-kselftest, kunit-dev, linux-kernel,
linux-ext4, linux-security-module, elver, davidgow,
Anders Roxell
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.
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
drivers/base/Kconfig | 3 ++-
drivers/base/test/Kconfig | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig
index 5f0bc74d2409..c48e6e4ef367 100644
--- a/drivers/base/Kconfig
+++ b/drivers/base/Kconfig
@@ -149,8 +149,9 @@ config DEBUG_TEST_DRIVER_REMOVE
test this functionality.
config PM_QOS_KUNIT_TEST
- bool "KUnit Test for PM QoS features"
+ bool "KUnit Test for PM QoS features" if !KUNIT_RUN_ALL
depends on KUNIT=y
+ default KUNIT_RUN_ALL
config HMEM_REPORTING
bool
diff --git a/drivers/base/test/Kconfig b/drivers/base/test/Kconfig
index 305c7751184a..0d662d689f6b 100644
--- a/drivers/base/test/Kconfig
+++ b/drivers/base/test/Kconfig
@@ -9,5 +9,6 @@ config TEST_ASYNC_DRIVER_PROBE
If unsure say N.
config KUNIT_DRIVER_PE_TEST
- bool "KUnit Tests for property entry API"
+ bool "KUnit Tests for property entry API" if !KUNIT_RUN_ALL
depends on KUNIT=y
+ default KUNIT_RUN_ALL
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 4/6] drivers: base: default KUNIT_* fragments to KUNIT_RUN_ALL
2020-05-05 10:27 [PATCH v2 4/6] drivers: base: default KUNIT_* fragments to KUNIT_RUN_ALL Anders Roxell
@ 2020-05-07 3:20 ` David Gow
0 siblings, 0 replies; 2+ messages in thread
From: David Gow @ 2020-05-07 3:20 UTC (permalink / raw)
To: Anders Roxell
Cc: Greg Kroah-Hartman, John Johansen, jmorris, serge,
Theodore Ts'o, adilger.kernel, Andrew Morton,
Brendan Higgins, =linux-kselftest, KUnit Development,
Linux Kernel Mailing List, linux-ext4, linux-security-module,
Marco Elver
On Tue, May 5, 2020 at 6:27 PM Anders Roxell <anders.roxell@linaro.org> 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.
As with patch 2, minor typos here.
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: David Gow <davidgow@google.com>
> ---
> drivers/base/Kconfig | 3 ++-
> drivers/base/test/Kconfig | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig
> index 5f0bc74d2409..c48e6e4ef367 100644
> --- a/drivers/base/Kconfig
> +++ b/drivers/base/Kconfig
> @@ -149,8 +149,9 @@ config DEBUG_TEST_DRIVER_REMOVE
> test this functionality.
>
> config PM_QOS_KUNIT_TEST
> - bool "KUnit Test for PM QoS features"
> + bool "KUnit Test for PM QoS features" if !KUNIT_RUN_ALL
> depends on KUNIT=y
> + default KUNIT_RUN_ALL
>
> config HMEM_REPORTING
> bool
> diff --git a/drivers/base/test/Kconfig b/drivers/base/test/Kconfig
> index 305c7751184a..0d662d689f6b 100644
> --- a/drivers/base/test/Kconfig
> +++ b/drivers/base/test/Kconfig
> @@ -9,5 +9,6 @@ config TEST_ASYNC_DRIVER_PROBE
>
> If unsure say N.
> config KUNIT_DRIVER_PE_TEST
> - bool "KUnit Tests for property entry API"
> + bool "KUnit Tests for property entry API" if !KUNIT_RUN_ALL
> depends on KUNIT=y
> + default KUNIT_RUN_ALL
> --
> 2.20.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-07 3:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 10:27 [PATCH v2 4/6] drivers: base: default KUNIT_* fragments to KUNIT_RUN_ALL Anders Roxell
2020-05-07 3:20 ` David Gow
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.