mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 01:11:51 -04:00
Add a kunit test suite for fw_devlink support for software nodes. Most cases call add_links() directly and inspect the resulting fwnode supplier/consumer lists: a single reference, multiple references, a reference to an unregistered node, a "remote-endpoint" reference and a reference array. The last case is end-to-end - it registers real consumer and supplier platform devices together with their drivers, adds the consumer first and checks that fw_devlink defers its probe until the supplier has been bound. Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Tested-by: David Gow <david@davidgow.net> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Link: https://patch.msgid.link/20260713-swnode-fw-devlink-v4-3-d4f2dee27ad9@oss.qualcomm.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
26 lines
773 B
Plaintext
26 lines
773 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
config TEST_ASYNC_DRIVER_PROBE
|
|
tristate "Build kernel module to test asynchronous driver probing"
|
|
depends on m
|
|
help
|
|
Enabling this option produces a kernel module that allows
|
|
testing asynchronous driver probing by the device core.
|
|
The module name will be test_async_driver_probe.ko
|
|
|
|
If unsure say N.
|
|
|
|
config DM_KUNIT_TEST
|
|
tristate "KUnit Tests for the device model" if !KUNIT_ALL_TESTS
|
|
depends on KUNIT
|
|
default KUNIT_ALL_TESTS
|
|
|
|
config DRIVER_PE_KUNIT_TEST
|
|
tristate "KUnit Tests for property entry API" if !KUNIT_ALL_TESTS
|
|
depends on KUNIT
|
|
default KUNIT_ALL_TESTS
|
|
|
|
config DRIVER_SWNODE_KUNIT_TEST
|
|
tristate "KUnit Tests for software node fw_devlink links" if !KUNIT_ALL_TESTS
|
|
depends on KUNIT
|
|
default KUNIT_ALL_TESTS
|