2022-11-19 23:45:44 +00:00
|
|
|
config POST
|
|
|
|
bool "Power On Self Test support"
|
|
|
|
help
|
|
|
|
See doc/README.POST for more details
|
|
|
|
|
2023-04-03 18:27:43 +00:00
|
|
|
menu "Unit tests"
|
|
|
|
|
|
|
|
config UNIT_TEST
|
2015-05-20 19:27:31 +00:00
|
|
|
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
|
|
|
|
2020-10-26 02:38:26 +00:00
|
|
|
config SPL_UNIT_TEST
|
|
|
|
bool "Unit tests in SPL"
|
2022-06-11 03:03:09 +00:00
|
|
|
depends on SPL
|
2020-10-26 02:38:26 +00:00
|
|
|
# We need to be able to unbind devices for tests to work
|
|
|
|
select SPL_DM_DEVICE_REMOVE
|
|
|
|
help
|
|
|
|
Select this to enable unit tests in SPL. Most test are designed for
|
|
|
|
running in U-Boot proper, but some are intended for SPL, such as
|
|
|
|
of-platdata and SPL handover. To run these tests with the sandbox_spl
|
|
|
|
board, use the -u (unit test) option.
|
|
|
|
|
2019-01-30 06:53:31 +00:00
|
|
|
config UT_LIB
|
|
|
|
bool "Unit tests for library functions"
|
|
|
|
depends on UNIT_TEST
|
2022-08-01 13:57:59 +00:00
|
|
|
default y if !SANDBOX_VPL
|
2019-01-30 06:53:31 +00:00
|
|
|
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.
|
|
|
|
|
2021-07-08 13:57:33 +00:00
|
|
|
config UT_LIB_CRYPT
|
|
|
|
bool "Unit test for crypt-style password hashing"
|
|
|
|
depends on !SPL && AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
|
|
|
|
default y
|
|
|
|
select CRYPT_PW
|
|
|
|
select CRYPT_PW_SHA256
|
|
|
|
select CRYPT_PW_SHA512
|
|
|
|
help
|
|
|
|
Enables a test for the crypt-style password hash functions.
|
|
|
|
|
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
|
|
|
|
2020-10-31 07:59:25 +00:00
|
|
|
config UT_COMPRESSION
|
|
|
|
bool "Unit test for compression"
|
|
|
|
depends on UNIT_TEST
|
2023-01-12 16:27:46 +00:00
|
|
|
depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4 && ZSTD
|
2020-10-31 07:59:25 +00:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables tests for compression and decompression routines for simple
|
|
|
|
sanity and for buffer overflow conditions.
|
|
|
|
|
2020-02-26 20:48:18 +00:00
|
|
|
config UT_LOG
|
|
|
|
bool "Unit tests for logging functions"
|
|
|
|
depends on UNIT_TEST
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables the 'ut log' command which tests logging functions like
|
|
|
|
log_err().
|
|
|
|
See also CONFIG_LOG_TEST which provides the 'log test' command.
|
|
|
|
|
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
|
2022-05-02 04:27:00 +00:00
|
|
|
select CHARSET
|
2018-08-31 19:31:28 +00:00
|
|
|
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"
|
2022-08-01 13:57:59 +00:00
|
|
|
source "test/lib/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"
|
2023-04-03 18:27:43 +00:00
|
|
|
|
|
|
|
endmenu
|