blob: 465028265b2b17c05137e9a5212b6e33d2e0bad1 [file] [log] [blame]
Tom Rini8eaa3c72022-11-19 18:45:44 -05001config POST
2 bool "Power On Self Test support"
3 help
4 See doc/README.POST for more details
5
Joe Hershberger437176b2015-05-20 14:27:31 -05006menuconfig UNIT_TEST
7 bool "Unit tests"
8 help
9 Select this to compile in unit tests for various parts of
10 U-Boot. Test suites will be subcommands of the "ut" command.
11 This does not require sandbox to be included, but it is most
12 often used there.
Joe Hershberger3a77be52015-05-20 14:27:27 -050013
Simon Glassbf40eee2020-10-25 20:38:26 -060014config SPL_UNIT_TEST
15 bool "Unit tests in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -040016 depends on SPL
Simon Glassbf40eee2020-10-25 20:38:26 -060017 # We need to be able to unbind devices for tests to work
18 select SPL_DM_DEVICE_REMOVE
19 help
20 Select this to enable unit tests in SPL. Most test are designed for
21 running in U-Boot proper, but some are intended for SPL, such as
22 of-platdata and SPL handover. To run these tests with the sandbox_spl
23 board, use the -u (unit test) option.
24
Heinrich Schuchardtf77a6352019-01-30 07:53:31 +010025config UT_LIB
26 bool "Unit tests for library functions"
27 depends on UNIT_TEST
Simon Glass644d8072022-08-01 07:57:59 -060028 default y if !SANDBOX_VPL
Heinrich Schuchardtf77a6352019-01-30 07:53:31 +010029 help
30 Enables the 'ut lib' command which tests library functions like
AKASHI Takahirob5124e32019-11-13 09:45:02 +090031 memcat(), memcyp(), memmove() and ASN1 compiler/decoder.
32
33if UT_LIB
34
35config UT_LIB_ASN1
36 bool "Unit test for asn1 compiler and decoder function"
37 default y
38 imply ASYMMETRIC_KEY_TYPE
39 imply ASYMMETRIC_PUBLIC_KEY_SUBTYPE
40 imply X509_CERTIFICATE_PARSER
41 imply PKCS7_MESSAGE_PARSER
42 imply RSA_PUBLIC_KEY_PARSER
43 help
44 Enables a test which exercises asn1 compiler and decoder function
45 via various parsers.
46
Steffen Jaeckel229bd512021-07-08 15:57:33 +020047config UT_LIB_CRYPT
48 bool "Unit test for crypt-style password hashing"
49 depends on !SPL && AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
50 default y
51 select CRYPT_PW
52 select CRYPT_PW_SHA256
53 select CRYPT_PW_SHA512
54 help
55 Enables a test for the crypt-style password hash functions.
56
AKASHI Takahirof24cd6c2020-02-21 15:13:00 +090057config UT_LIB_RSA
58 bool "Unit test for rsa_verify() function"
59 depends on RSA
60 depends on RSA_VERIFY_WITH_PKEY
61 select IMAGE_SIGN_INFO
62 default y
63 help
64 Enables rsa_verify() test, currently rsa_verify_with_pkey only()
65 only, at the 'ut lib' command.
66
AKASHI Takahirob5124e32019-11-13 09:45:02 +090067endif
Heinrich Schuchardtf77a6352019-01-30 07:53:31 +010068
Heinrich Schuchardt7b3b0032020-10-31 08:59:25 +010069config UT_COMPRESSION
70 bool "Unit test for compression"
71 depends on UNIT_TEST
Brandon Maier61c55e82023-01-12 10:27:46 -060072 depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4 && ZSTD
Heinrich Schuchardt7b3b0032020-10-31 08:59:25 +010073 default y
74 help
75 Enables tests for compression and decompression routines for simple
76 sanity and for buffer overflow conditions.
77
Heinrich Schuchardtf433d502020-02-26 21:48:18 +010078config UT_LOG
79 bool "Unit tests for logging functions"
80 depends on UNIT_TEST
81 default y
82 help
83 Enables the 'ut log' command which tests logging functions like
84 log_err().
85 See also CONFIG_LOG_TEST which provides the 'log test' command.
86
Joe Hershbergeree20efe2015-05-20 14:27:30 -050087config UT_TIME
Simon Glass9b4221b2015-05-02 09:25:02 -060088 bool "Unit tests for time functions"
Joe Hershberger437176b2015-05-20 14:27:31 -050089 depends on UNIT_TEST
Simon Glass9b4221b2015-05-02 09:25:02 -060090 help
Joe Hershbergeree20efe2015-05-20 14:27:30 -050091 Enables the 'ut time' command which tests that the time functions
Simon Glass9b4221b2015-05-02 09:25:02 -060092 work correctly. The test is fairly simple and will not catch all
93 problems. But if you are having problems with udelay() and the like,
94 this is a good place to start.
95
Heinrich Schuchardtb8b6c812018-08-31 21:31:28 +020096config UT_UNICODE
97 bool "Unit tests for Unicode functions"
98 depends on UNIT_TEST
99 default y
Heinrich Schuchardt013aabb2022-05-02 06:27:00 +0200100 select CHARSET
Heinrich Schuchardtb8b6c812018-08-31 21:31:28 +0200101 help
102 Enables the 'ut unicode' command which tests that the functions for
103 manipulating Unicode strings work correctly.
104
Simon Glass9dd430d2015-02-05 21:41:37 -0700105source "test/dm/Kconfig"
Joe Hershberger26e038f2015-05-20 14:27:36 -0500106source "test/env/Kconfig"
Simon Glass644d8072022-08-01 07:57:59 -0600107source "test/lib/Kconfig"
Heiko Stuebner1c9bb9b2019-10-23 16:46:41 +0200108source "test/optee/Kconfig"
Maxime Ripard0e31a112016-07-05 10:26:46 +0200109source "test/overlay/Kconfig"