Difference between revisions of "Device Tree unittest"
(initial version, moved from and linked by Device Tree Reference, #linux_kernel_framework) |
(add category, headers) |
||
Line 1: | Line 1: | ||
+ | [[Category:Device_tree]] | ||
+ | |||
+ | |||
+ | == Enable == | ||
Enable unit tests through config option CONFIG_OF_UNITTEST | Enable unit tests through config option CONFIG_OF_UNITTEST | ||
* Device Drivers ---> Device Tree and Open Firmware support ---> Device Tree runtime unit tests | * 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 | The unit tests will be performed near the end of the boot sequence. The start of the tests | ||
Line 13: | Line 19: | ||
### dt-test ### end of unittest - 148 passed, 0 failed | ### dt-test ### end of unittest - 148 passed, 0 failed | ||
− | The unit tests are located in | + | == Source Location == |
+ | |||
+ | The unit tests are located in the Linux kernel source tree | ||
* drivers/of/unittest.c | * drivers/of/unittest.c | ||
* drivers/of/unittest-data/ | * drivers/of/unittest-data/ |
Revision as of 17:54, 10 February 2021
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/