Documentation: kunit: Update Kconfig parts for KUNIT's module support
Subsystems (4)
PATCH 1/1 Documentation: kunit: Update Kconfig parts for KUNIT's module support
From: SeongJae Park <[email protected]>
If 'CONFIG_KUNIT=m', letting kunit tests that do not support loadable module build depends on 'KUNIT' instead of 'KUNIT=y' result in compile errors. This commit updates the document for this.
--- Documentation/dev-tools/kunit/start.rst | 2 +- Documentation/dev-tools/kunit/usage.rst | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)
Documentation/dev-tools/kunit/start.rst +1 -1
@@ -197,7 +197,7 @@ Now add the following to ``drivers/misc/Kconfig``: config MISC_EXAMPLE_TEST bool "Test for my example" - depends on MISC_EXAMPLE && KUNIT + depends on MISC_EXAMPLE && KUNIT=y and the following to ``drivers/misc/Makefile``:
Documentation/dev-tools/kunit/usage.rst +5 -0
@@ -556,6 +556,11 @@ Once the kernel is built and installed, a simple ...will run the tests. +.. note:: + Note that you should make your test depends on ``KUNIT=y`` in Kcofig if the + test does not support module build. Otherwise, it will trigger compile + errors if ``CONFIG_KUNIT`` is ``m``. + Writing new tests for other architectures -----------------------------------------
Signature · 1 line
2.17.1
Quoted 32 lines · SeongJae Park' via KUnit Development
From: SeongJae Park <[email protected]>
If '
CONFIG_KUNIT=m', letting kunit tests that do not support loadable module build depends on 'KUNIT' instead of 'KUNIT=y' result in compile errors. This commit updates the document for this.Fixes 9fe124bf1b77 ("kunit: allow kunit to be loaded as a module")Signed-off-by SeongJae Park <[email protected]>--- Documentation/dev-tools/kunit/start.rst | 2 +- Documentation/dev-tools/kunit/usage.rst | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)Documentation/dev-tools/kunit/start.rst +1
-1@@ -197,7 +197,7 @@ Now add the following to ``drivers/misc/Kconfig``: config MISC_EXAMPLE_TEST bool "Test for my example" - depends on MISC_EXAMPLE && KUNIT + depends on MISC_EXAMPLE && KUNIT=y and the following to ``drivers/misc/Makefile``:Documentation/dev-tools/kunit/usage.rst +0
-0
Documentation/dev-tools/kunit/usage.rst Once the kernel is built and installed, a simple · line 562
Quoted 7 lines
Documentation/dev-tools/kunit/usage.rst +4
-0@@ -556,6 +556,11 @@ Once the kernel is built and installed, a simple ...will run the tests. +.. note:: + Note that you should make your test depends on ``KUNIT=y`` in Kcofig if the + test does not support module build. Otherwise, it will trigger compile + errors if ``CONFIG_KUNIT`` is ``m``.
s/Kcofig/Kconfig/
Quoted 10 lines
Documentation/dev-tools/kunit/usage.rst +0
-1Writing new tests for other architectures ----------------------------------------- --2.17.1
--
You received this message because you are subscribed to the Google Groups "KUnit Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/kunit-dev/20201012105420.5945-1-sjpark%40amazon.com.
Quoted 35 lines · On Mon, 12 Oct 2020 13:28:42 +0200 Marco Elver <[email protected]> wrote:
Quoted 33 lines · SeongJae Park' via KUnit Development
From: SeongJae Park <[email protected]>
If '
CONFIG_KUNIT=m', letting kunit tests that do not support loadable module build depends on 'KUNIT' instead of 'KUNIT=y' result in compile errors. This commit updates the document for this.Fixes 9fe124bf1b77 ("kunit: allow kunit to be loaded as a module")Signed-off-by SeongJae Park <[email protected]>--- Documentation/dev-tools/kunit/start.rst | 2 +- Documentation/dev-tools/kunit/usage.rst | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)Documentation/dev-tools/kunit/start.rst +1
-1@@ -197,7 +197,7 @@ Now add the following to ``drivers/misc/Kconfig``: config MISC_EXAMPLE_TEST bool "Test for my example" - depends on MISC_EXAMPLE && KUNIT + depends on MISC_EXAMPLE && KUNIT=y and the following to ``drivers/misc/Makefile``:Documentation/dev-tools/kunit/usage.rst +0
-0@@ -556,6 +556,11 @@ Once the kernel is built and installed, a simple
Quoted 8 lines
Documentation/dev-tools/kunit/usage.rst Once the kernel is built and installed, a simple · line 562
Quoted 6 lines
Documentation/dev-tools/kunit/usage.rst +4
-0...will run the tests. +.. note:: + Note that you should make your test depends on ``KUNIT=y`` in Kcofig if the + test does not support module build. Otherwise, it will trigger compile + errors if ``CONFIG_KUNIT`` is ``m``.s/Kcofig/Kconfig/
Thanks, I will fix this in the next version of this patch.
Thanks,
SeongJae Park