mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
kunit: fix Kconfig for build-in tests USB4 and Nitro Enclaves
Both the USB4 and Nitro Enclaves KUNIT tests are now able to be compiled if KUNIT is compiled as a module. This leads to issues if KUNIT is being packaged separately from the core kernel and when KUNIT is run baremetal without the required driver compiled into the kernel. Fixes:635dcd1684("thunderbolt: test: Use kunit_test_suite() macro") Fixes:fe5be808fa("nitro_enclaves: test: Use kunit_test_suite() macro") Signed-off-by: Nico Pache <npache@redhat.com> Reviewed-by: David Gow <davidgow@google.com> Reviewed-by: Andra Paraschiv <andraprs@amazon.com> Acked-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
@@ -29,8 +29,7 @@ config USB4_DEBUGFS_WRITE
|
|||||||
|
|
||||||
config USB4_KUNIT_TEST
|
config USB4_KUNIT_TEST
|
||||||
bool "KUnit tests" if !KUNIT_ALL_TESTS
|
bool "KUnit tests" if !KUNIT_ALL_TESTS
|
||||||
depends on (USB4=m || KUNIT=y)
|
depends on USB4 && KUNIT=y
|
||||||
depends on KUNIT
|
|
||||||
default KUNIT_ALL_TESTS
|
default KUNIT_ALL_TESTS
|
||||||
|
|
||||||
config USB4_DMA_TEST
|
config USB4_DMA_TEST
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ config NITRO_ENCLAVES
|
|||||||
|
|
||||||
config NITRO_ENCLAVES_MISC_DEV_TEST
|
config NITRO_ENCLAVES_MISC_DEV_TEST
|
||||||
bool "Tests for the misc device functionality of the Nitro Enclaves" if !KUNIT_ALL_TESTS
|
bool "Tests for the misc device functionality of the Nitro Enclaves" if !KUNIT_ALL_TESTS
|
||||||
depends on NITRO_ENCLAVES && KUNIT
|
depends on NITRO_ENCLAVES && KUNIT=y
|
||||||
default KUNIT_ALL_TESTS
|
default KUNIT_ALL_TESTS
|
||||||
help
|
help
|
||||||
Enable KUnit tests for the misc device functionality of the Nitro
|
Enable KUnit tests for the misc device functionality of the Nitro
|
||||||
|
|||||||
Reference in New Issue
Block a user