diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-04-29 16:38:39 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-06-22 19:58:20 +0300 |
commit | 54509f5005caccd8459c9084535802feeb27bb2c (patch) | |
tree | ebb7830b61191f64ecf0ffeac7653dda22bd2e85 /drivers/thunderbolt/Kconfig | |
parent | c738a794e5295ea6668ec9441c8df28c9a3c7502 (diff) | |
download | linux-54509f5005caccd8459c9084535802feeb27bb2c.tar.xz |
thunderbolt: Add KUnit tests for path walking
This adds KUnit tests for path walking which is only dependent on
software structures, so no hardware is needed to run these.
We make these available only when both KUnit and the driver itself are
built into the kernel image. The reason for this is that KUnit adds its
own module_init() call in kunit_test_suite() which generates linker
error because the driver does the same in nhi.c. This should be fine for
now because these tests are only meant to run by developers anyway.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/Kconfig')
-rw-r--r-- | drivers/thunderbolt/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/thunderbolt/Kconfig b/drivers/thunderbolt/Kconfig index daa9bb52fc77..354e61c0f2e5 100644 --- a/drivers/thunderbolt/Kconfig +++ b/drivers/thunderbolt/Kconfig @@ -15,3 +15,8 @@ menuconfig USB4 To compile this driver a module, choose M here. The module will be called thunderbolt. + +config USB4_KUNIT_TEST + bool "KUnit tests" + depends on KUNIT=y + depends on USB4=y |