2015-05-20 19:27:31 +00:00
|
|
|
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.
|
2015-05-20 19:27:27 +00:00
|
|
|
|
2019-01-30 06:53:31 +00:00
|
|
|
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
|
2019-11-13 00:45:02 +00:00
|
|
|
memcat(), memcyp(), memmove() and ASN1 compiler/decoder.
|
|
|
|
|
|
|
|
if UT_LIB
|
|
|
|
|
|
|
|
config UT_LIB_ASN1
|
|
|
|
bool "Unit test for asn1 compiler and decoder function"
|
|
|
|
default y
|
|
|
|
imply ASYMMETRIC_KEY_TYPE
|
|
|
|
imply ASYMMETRIC_PUBLIC_KEY_SUBTYPE
|
|
|
|
imply X509_CERTIFICATE_PARSER
|
|
|
|
imply PKCS7_MESSAGE_PARSER
|
|
|
|
imply RSA_PUBLIC_KEY_PARSER
|
|
|
|
help
|
|
|
|
Enables a test which exercises asn1 compiler and decoder function
|
|
|
|
via various parsers.
|
|
|
|
|
2020-02-21 06:13:00 +00:00
|
|
|
config UT_LIB_RSA
|
|
|
|
bool "Unit test for rsa_verify() function"
|
|
|
|
depends on RSA
|
|
|
|
depends on RSA_VERIFY_WITH_PKEY
|
|
|
|
select IMAGE_SIGN_INFO
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables rsa_verify() test, currently rsa_verify_with_pkey only()
|
|
|
|
only, at the 'ut lib' command.
|
|
|
|
|
2019-11-13 00:45:02 +00:00
|
|
|
endif
|
2019-01-30 06:53:31 +00:00
|
|
|
|
2015-05-20 19:27:30 +00:00
|
|
|
config UT_TIME
|
2015-05-02 15:25:02 +00:00
|
|
|
bool "Unit tests for time functions"
|
2015-05-20 19:27:31 +00:00
|
|
|
depends on UNIT_TEST
|
2015-05-02 15:25:02 +00:00
|
|
|
help
|
2015-05-20 19:27:30 +00:00
|
|
|
Enables the 'ut time' command which tests that the time functions
|
2015-05-02 15:25:02 +00:00
|
|
|
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.
|
|
|
|
|
2018-08-31 19:31:28 +00:00
|
|
|
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.
|
|
|
|
|
2015-02-06 04:41:37 +00:00
|
|
|
source "test/dm/Kconfig"
|
2015-05-20 19:27:36 +00:00
|
|
|
source "test/env/Kconfig"
|
2019-10-23 14:46:41 +00:00
|
|
|
source "test/optee/Kconfig"
|
2016-07-05 08:26:46 +00:00
|
|
|
source "test/overlay/Kconfig"
|