global: Migrate CONFIG_STACKBASE to CFG
[platform/kernel/u-boot.git] / test / Kconfig
1 config POST
2         bool "Power On Self Test support"
3         help
4           See doc/README.POST for more details
5
6 menuconfig 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.
13
14 config SPL_UNIT_TEST
15         bool "Unit tests in SPL"
16         depends on SPL
17         # 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
25 config UT_LIB
26         bool "Unit tests for library functions"
27         depends on UNIT_TEST
28         default y if !SANDBOX_VPL
29         help
30           Enables the 'ut lib' command which tests library functions like
31           memcat(), memcyp(), memmove() and ASN1 compiler/decoder.
32
33 if UT_LIB
34
35 config 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
47 config 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
57 config 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
67 endif
68
69 config UT_COMPRESSION
70         bool "Unit test for compression"
71         depends on UNIT_TEST
72         depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4
73         default y
74         help
75           Enables tests for compression and decompression routines for simple
76           sanity and for buffer overflow conditions.
77
78 config 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
87 config UT_TIME
88         bool "Unit tests for time functions"
89         depends on UNIT_TEST
90         help
91           Enables the 'ut time' command which tests that the time functions
92           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
96 config UT_UNICODE
97         bool "Unit tests for Unicode functions"
98         depends on UNIT_TEST
99         default y
100         select CHARSET
101         help
102           Enables the 'ut unicode' command which tests that the functions for
103           manipulating Unicode strings work correctly.
104
105 source "test/dm/Kconfig"
106 source "test/env/Kconfig"
107 source "test/lib/Kconfig"
108 source "test/optee/Kconfig"
109 source "test/overlay/Kconfig"