of: Add a KUnit test for overlays and test managed APIs
authorStephen Boyd <sboyd@kernel.org>
Thu, 18 Jul 2024 21:05:03 +0000 (14:05 -0700)
committerStephen Boyd <sboyd@kernel.org>
Mon, 29 Jul 2024 22:33:12 +0000 (15:33 -0700)
commit5c9dd72d8385c2b02c6e31a0f59f777d8a26a218
tree5a670ab2206601fe799b39e2a8e84a19cb4a6027
parent7fc616c87fc5bd963f02797a2137c8e687c8e3f6
of: Add a KUnit test for overlays and test managed APIs

Test the KUnit test managed overlay APIs. Confirm that platform devices
are created and destroyed properly. This provides us confidence that the
test managed APIs work correctly and can be relied upon to provide tests
with fake platform devices and device nodes via overlays compiled into
the kernel image.

Cc: Rob Herring <robh@kernel.org>
Cc: Saravana Kannan <saravanak@google.com>
Cc: Daniel Latypov <dlatypov@google.com>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
Reviewed-by: David Gow <davidgow@google.com>
Cc: Rae Moar <rmoar@google.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240718210513.3801024-5-sboyd@kernel.org
drivers/of/.kunitconfig
drivers/of/Kconfig
drivers/of/Makefile
drivers/of/kunit_overlay_test.dtso [new file with mode: 0644]
drivers/of/overlay_test.c [new file with mode: 0644]