Merge tag 'u-boot-imx-master-20231220' of https://gitlab.denx.de/u-boot/custodians...
[pandora-u-boot.git] / test / Kconfig
1 menu "Testing"
2
3 config UNIT_TEST
4         bool "Unit tests"
5         help
6           Select this to compile in unit tests for various parts of
7           U-Boot. Test suites will be subcommands of the "ut" command.
8           This does not require sandbox to be included, but it is most
9           often used there.
10
11 config SPL_UNIT_TEST
12         bool "Unit tests in SPL"
13         depends on SPL
14         # We need to be able to unbind devices for tests to work
15         select SPL_DM_DEVICE_REMOVE
16         help
17           Select this to enable unit tests in SPL. Most test are designed for
18           running in U-Boot proper, but some are intended for SPL, such as
19           of-platdata and SPL handover. To run these tests with the sandbox_spl
20           board, use the -u (unit test) option.
21
22 config UT_LIB
23         bool "Unit tests for library functions"
24         depends on UNIT_TEST
25         default y if !SANDBOX_VPL
26         help
27           Enables the 'ut lib' command which tests library functions like
28           memcat(), memcyp(), memmove() and ASN1 compiler/decoder.
29
30 if UT_LIB
31
32 config UT_LIB_ASN1
33         bool "Unit test for asn1 compiler and decoder function"
34         default y
35         imply ASYMMETRIC_KEY_TYPE
36         imply ASYMMETRIC_PUBLIC_KEY_SUBTYPE
37         imply X509_CERTIFICATE_PARSER
38         imply PKCS7_MESSAGE_PARSER
39         imply RSA_PUBLIC_KEY_PARSER
40         help
41           Enables a test which exercises asn1 compiler and decoder function
42           via various parsers.
43
44 config UT_LIB_CRYPT
45         bool "Unit test for crypt-style password hashing"
46         depends on !SPL && AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
47         default y
48         select CRYPT_PW
49         select CRYPT_PW_SHA256
50         select CRYPT_PW_SHA512
51         help
52           Enables a test for the crypt-style password hash functions.
53
54 config UT_LIB_RSA
55         bool "Unit test for rsa_verify() function"
56         depends on RSA
57         depends on RSA_VERIFY_WITH_PKEY
58         select IMAGE_SIGN_INFO
59         default y
60         help
61           Enables rsa_verify() test, currently rsa_verify_with_pkey only()
62           only, at the 'ut lib' command.
63
64 endif
65
66 config UT_COMPRESSION
67         bool "Unit test for compression"
68         depends on UNIT_TEST
69         depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4 && ZSTD
70         default y
71         help
72           Enables tests for compression and decompression routines for simple
73           sanity and for buffer overflow conditions.
74
75 config UT_LOG
76         bool "Unit tests for logging functions"
77         depends on UNIT_TEST
78         default y
79         help
80           Enables the 'ut log' command which tests logging functions like
81           log_err().
82           See also CONFIG_LOG_TEST which provides the 'log test' command.
83
84 config UT_TIME
85         bool "Unit tests for time functions"
86         depends on UNIT_TEST
87         help
88           Enables the 'ut time' command which tests that the time functions
89           work correctly. The test is fairly simple and will not catch all
90           problems. But if you are having problems with udelay() and the like,
91           this is a good place to start.
92
93 config UT_UNICODE
94         bool "Unit tests for Unicode functions"
95         depends on UNIT_TEST
96         default y
97         select CHARSET
98         help
99           Enables the 'ut unicode' command which tests that the functions for
100           manipulating Unicode strings work correctly.
101
102 source "test/dm/Kconfig"
103 source "test/env/Kconfig"
104 source "test/image/Kconfig"
105 source "test/lib/Kconfig"
106 source "test/optee/Kconfig"
107 source "test/overlay/Kconfig"
108
109 config POST
110         bool "Power On Self Test support"
111         help
112           See doc/README.POST for more details
113
114 endmenu