test: Generalize the unit test framework
Separate the ability to define tests and assert status of test functions from the dm tests so they can be used more consistently throughout all tests. Signed-off-by:Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
Showing
- include/dm/test.h 7 additions, 28 deletionsinclude/dm/test.h
- include/test/test.h 47 additions, 0 deletionsinclude/test/test.h
- include/test/ut.h 14 additions, 14 deletionsinclude/test/ut.h
- test/Kconfig 3 additions, 0 deletionstest/Kconfig
- test/Makefile 1 addition, 0 deletionstest/Makefile
- test/dm/Kconfig 1 addition, 0 deletionstest/dm/Kconfig
- test/dm/Makefile 0 additions, 2 deletionstest/dm/Makefile
- test/dm/bus.c 20 additions, 19 deletionstest/dm/bus.c
- test/dm/core.c 40 additions, 34 deletionstest/dm/core.c
- test/dm/eth.c 7 additions, 7 deletionstest/dm/eth.c
- test/dm/gpio.c 11 additions, 11 deletionstest/dm/gpio.c
- test/dm/i2c.c 10 additions, 10 deletionstest/dm/i2c.c
- test/dm/pci.c 3 additions, 3 deletionstest/dm/pci.c
- test/dm/pmic.c 3 additions, 3 deletionstest/dm/pmic.c
- test/dm/regulator.c 8 additions, 8 deletionstest/dm/regulator.c
- test/dm/rtc.c 6 additions, 6 deletionstest/dm/rtc.c
- test/dm/sf.c 2 additions, 2 deletionstest/dm/sf.c
- test/dm/spi.c 4 additions, 4 deletionstest/dm/spi.c
- test/dm/test-driver.c 4 additions, 2 deletionstest/dm/test-driver.c
- test/dm/test-fdt.c 8 additions, 8 deletionstest/dm/test-fdt.c
Loading
Please register or sign in to comment