/* Test that of_overlay_apply_kunit() adds a node to the live tree */ staticvoid of_overlay_apply_kunit_apply(struct kunit *test)
{ struct device_node *np;
/* Test that of_overlay_apply_kunit() cleans up after the test is finished */ staticvoid of_overlay_apply_kunit_cleanup(struct kunit *test)
{ struct kunit fake; struct platform_device *pdev; struct device *dev; struct device_node *np;
of_root_kunit_skip(test); if (!IS_ENABLED(CONFIG_OF_OVERLAY))
kunit_skip(test, "requires CONFIG_OF_OVERLAY to apply overlay"); if (!IS_ENABLED(CONFIG_OF_EARLY_FLATTREE))
kunit_skip(test, "requires CONFIG_OF_EARLY_FLATTREE for root node");
/* * Test suite for test managed device tree overlays.
*/ staticstruct kunit_suite of_overlay_apply_kunit_suite = {
.name = "of_overlay_apply_kunit",
.test_cases = of_overlay_apply_kunit_test_cases,
};
kunit_test_suites(
&of_overlay_apply_kunit_suite,
);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("KUnit tests for device tree overlays");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.