mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
2dd0111adc
Memory functions may have architecture specific implementations. These should be tested. Provide unit tests for memset(), memcpy(), memmove(). Provide a 'ut lib' sub-command to execute the tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
menuconfig UNIT_TEST
|
|
bool "Unit tests"
|
|
help
|
|
Select this to compile in unit tests for various parts of
|
|
U-Boot. Test suites will be subcommands of the "ut" command.
|
|
This does not require sandbox to be included, but it is most
|
|
often used there.
|
|
|
|
config UT_LIB
|
|
bool "Unit tests for library functions"
|
|
depends on UNIT_TEST
|
|
default y
|
|
help
|
|
Enables the 'ut lib' command which tests library functions like
|
|
memcat(), memcyp(), memmove().
|
|
|
|
config UT_TIME
|
|
bool "Unit tests for time functions"
|
|
depends on UNIT_TEST
|
|
help
|
|
Enables the 'ut time' command which tests that the time functions
|
|
work correctly. The test is fairly simple and will not catch all
|
|
problems. But if you are having problems with udelay() and the like,
|
|
this is a good place to start.
|
|
|
|
config UT_UNICODE
|
|
bool "Unit tests for Unicode functions"
|
|
depends on UNIT_TEST
|
|
default y
|
|
help
|
|
Enables the 'ut unicode' command which tests that the functions for
|
|
manipulating Unicode strings work correctly.
|
|
|
|
source "test/dm/Kconfig"
|
|
source "test/env/Kconfig"
|
|
source "test/overlay/Kconfig"
|