Device Tree unittest

From eLinux.org
Revision as of 17:54, 10 February 2021 by Frowand (talk | contribs) (add category, headers)
Jump to: navigation, search


Enable

Enable unit tests through config option CONFIG_OF_UNITTEST

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

Run

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

Source Location

The unit tests are located in the Linux kernel source tree

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