dm: Add basic tests
Add some tests of driver model functionality. Coverage includes:
- basic init
- binding of drivers to devices using platform_data
- automatic probing of devices when referenced
- availability of platform data to devices
- lifecycle from bind to probe to remove to unbind
- renumbering within a uclass when devices are probed/removed
- calling driver-defined operations
- deactivation of drivers when removed
- memory leak across creation and destruction of drivers/uclasses
- uclass init/destroy methods
- automatic probe/remove of children/parents when needed
This function is enabled for sandbox, using CONFIG_DM_TEST.
Signed-off-by: NSimon Glass <sjg@chromium.org>
Showing
include/dm/test.h
0 → 100644
include/dm/ut.h
0 → 100644
test/dm/.gitignore
0 → 100644
test/dm/Makefile
0 → 100644
test/dm/core.c
0 → 100644
test/dm/test-dm.sh
0 → 100755
test/dm/test-driver.c
0 → 100644
test/dm/test-fdt.c
0 → 100644
test/dm/test-main.c
0 → 100644
test/dm/test-uclass.c
0 → 100644
test/dm/test.dts
0 → 100644
test/dm/ut.c
0 → 100644
想要评论请 注册 或 登录