Skip to content

Commit 98ad1dd

Browse files
geertugregkh
authored andcommitted
drivers: base: test: Make property entry API test modular
There is no reason why the KUnit Tests for the property entry API can only be built-in. Add support for building these tests as a loadable module, like is supported by most other tests. Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/98388154383df9d4ced73946efd18318aeea50e2.1695820382.git.geert+renesas@glider.be Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f1ac370 commit 98ad1dd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

drivers/base/test/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ config DM_KUNIT_TEST
1414
depends on KUNIT
1515

1616
config DRIVER_PE_KUNIT_TEST
17-
bool "KUnit Tests for property entry API" if !KUNIT_ALL_TESTS
18-
depends on KUNIT=y
17+
tristate "KUnit Tests for property entry API" if !KUNIT_ALL_TESTS
18+
depends on KUNIT
1919
default KUNIT_ALL_TESTS

drivers/base/test/property-entry-test.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,3 +506,7 @@ static struct kunit_suite property_entry_test_suite = {
506506
};
507507

508508
kunit_test_suite(property_entry_test_suite);
509+
510+
MODULE_DESCRIPTION("Test module for the property entry API");
511+
MODULE_AUTHOR("Dmitry Torokhov <[email protected]>");
512+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)