Device Tree unittest

From eLinux.org
Revision as of 17:50, 10 February 2021 by Frowand (talk | contribs) (initial version, moved from and linked by Device Tree Reference, #linux_kernel_framework)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Enable unit tests through config option CONFIG_OF_UNITTEST

  • Device Drivers ---> Device Tree and Open Firmware support ---> Device Tree runtime unit tests

The unit tests will be performed near the end of the boot sequence. The start of the tests is indicated by:

### dt-test ### start of unittest - you will see error messages

An example test result summary is:

### dt-test ### end of unittest - 148 passed, 0 failed

The unit tests are located in

  • drivers/of/unittest.c
  • drivers/of/unittest-data/