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