Simon Glass | 36778df | 2023-09-14 10:55:44 -0600 | [diff] [blame] | 1 | menu "Testing" |
Heinrich Schuchardt | 005acb2 | 2023-04-03 20:27:43 +0200 | [diff] [blame] | 2 | |
| 3 | config UNIT_TEST |
Joe Hershberger | feb3847 | 2015-05-20 14:27:31 -0500 | [diff] [blame] | 4 | bool "Unit tests" |
Simon Glass | 8b88891 | 2023-10-26 14:31:17 -0400 | [diff] [blame] | 5 | depends on CMDLINE |
Joe Hershberger | feb3847 | 2015-05-20 14:27:31 -0500 | [diff] [blame] | 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. |
Joe Hershberger | e721b88 | 2015-05-20 14:27:27 -0500 | [diff] [blame] | 11 | |
Simon Glass | ba96be4 | 2020-10-25 20:38:26 -0600 | [diff] [blame] | 12 | config SPL_UNIT_TEST |
| 13 | bool "Unit tests in SPL" |
Tom Rini | b340199 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 14 | depends on SPL |
Simon Glass | ba96be4 | 2020-10-25 20:38:26 -0600 | [diff] [blame] | 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 | |
Heinrich Schuchardt | 2dd0111 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 23 | config UT_LIB |
| 24 | bool "Unit tests for library functions" |
| 25 | depends on UNIT_TEST |
Simon Glass | 29784d6 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 26 | default y if !SANDBOX_VPL |
Heinrich Schuchardt | 2dd0111 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 27 | help |
| 28 | Enables the 'ut lib' command which tests library functions like |
AKASHI Takahiro | f523400f | 2019-11-13 09:45:02 +0900 | [diff] [blame] | 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" |
Simon Glass | f231151 | 2023-10-01 19:15:14 -0600 | [diff] [blame] | 35 | depends on SANDBOX |
AKASHI Takahiro | f523400f | 2019-11-13 09:45:02 +0900 | [diff] [blame] | 36 | default y |
| 37 | imply ASYMMETRIC_KEY_TYPE |
| 38 | imply ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
| 39 | imply X509_CERTIFICATE_PARSER |
| 40 | imply PKCS7_MESSAGE_PARSER |
| 41 | imply RSA_PUBLIC_KEY_PARSER |
| 42 | help |
| 43 | Enables a test which exercises asn1 compiler and decoder function |
| 44 | via various parsers. |
| 45 | |
Steffen Jaeckel | 26dd993 | 2021-07-08 15:57:33 +0200 | [diff] [blame] | 46 | config UT_LIB_CRYPT |
| 47 | bool "Unit test for crypt-style password hashing" |
| 48 | depends on !SPL && AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION |
| 49 | default y |
| 50 | select CRYPT_PW |
| 51 | select CRYPT_PW_SHA256 |
| 52 | select CRYPT_PW_SHA512 |
| 53 | help |
| 54 | Enables a test for the crypt-style password hash functions. |
| 55 | |
AKASHI Takahiro | d090b39 | 2020-02-21 15:13:00 +0900 | [diff] [blame] | 56 | config UT_LIB_RSA |
| 57 | bool "Unit test for rsa_verify() function" |
| 58 | depends on RSA |
| 59 | depends on RSA_VERIFY_WITH_PKEY |
| 60 | select IMAGE_SIGN_INFO |
| 61 | default y |
| 62 | help |
| 63 | Enables rsa_verify() test, currently rsa_verify_with_pkey only() |
| 64 | only, at the 'ut lib' command. |
| 65 | |
AKASHI Takahiro | f523400f | 2019-11-13 09:45:02 +0900 | [diff] [blame] | 66 | endif |
Heinrich Schuchardt | 2dd0111 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 67 | |
Simon Glass | 07073d2 | 2023-10-01 19:15:15 -0600 | [diff] [blame] | 68 | config UT_BOOTSTD |
| 69 | bool "Unit tests for standard boot" |
Heinrich Schuchardt | 6e75ae1 | 2023-12-16 16:46:31 +0100 | [diff] [blame] | 70 | depends on UNIT_TEST && BOOTSTD && SANDBOX |
Simon Glass | 07073d2 | 2023-10-01 19:15:15 -0600 | [diff] [blame] | 71 | default y |
| 72 | |
Heinrich Schuchardt | de429d7 | 2020-10-31 08:59:25 +0100 | [diff] [blame] | 73 | config UT_COMPRESSION |
| 74 | bool "Unit test for compression" |
| 75 | depends on UNIT_TEST |
Brandon Maier | 65d373a | 2023-01-12 10:27:46 -0600 | [diff] [blame] | 76 | depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4 && ZSTD |
Heinrich Schuchardt | de429d7 | 2020-10-31 08:59:25 +0100 | [diff] [blame] | 77 | default y |
| 78 | help |
| 79 | Enables tests for compression and decompression routines for simple |
| 80 | sanity and for buffer overflow conditions. |
| 81 | |
Heinrich Schuchardt | 395041b | 2020-02-26 21:48:18 +0100 | [diff] [blame] | 82 | config UT_LOG |
| 83 | bool "Unit tests for logging functions" |
| 84 | depends on UNIT_TEST |
| 85 | default y |
| 86 | help |
| 87 | Enables the 'ut log' command which tests logging functions like |
| 88 | log_err(). |
| 89 | See also CONFIG_LOG_TEST which provides the 'log test' command. |
| 90 | |
Joe Hershberger | c812f72 | 2015-05-20 14:27:30 -0500 | [diff] [blame] | 91 | config UT_TIME |
Simon Glass | 8271f5d | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 92 | bool "Unit tests for time functions" |
Joe Hershberger | feb3847 | 2015-05-20 14:27:31 -0500 | [diff] [blame] | 93 | depends on UNIT_TEST |
Simon Glass | 8271f5d | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 94 | help |
Joe Hershberger | c812f72 | 2015-05-20 14:27:30 -0500 | [diff] [blame] | 95 | Enables the 'ut time' command which tests that the time functions |
Simon Glass | 8271f5d | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 96 | work correctly. The test is fairly simple and will not catch all |
| 97 | problems. But if you are having problems with udelay() and the like, |
| 98 | this is a good place to start. |
| 99 | |
Heinrich Schuchardt | f11a164 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 100 | config UT_UNICODE |
| 101 | bool "Unit tests for Unicode functions" |
| 102 | depends on UNIT_TEST |
| 103 | default y |
Heinrich Schuchardt | d30924f | 2022-05-02 06:27:00 +0200 | [diff] [blame] | 104 | select CHARSET |
Heinrich Schuchardt | f11a164 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 105 | help |
| 106 | Enables the 'ut unicode' command which tests that the functions for |
| 107 | manipulating Unicode strings work correctly. |
| 108 | |
Simon Glass | 1967982 | 2015-02-05 21:41:37 -0700 | [diff] [blame] | 109 | source "test/dm/Kconfig" |
Joe Hershberger | 421f86f | 2015-05-20 14:27:36 -0500 | [diff] [blame] | 110 | source "test/env/Kconfig" |
Sean Anderson | c56468a6 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 111 | source "test/image/Kconfig" |
Simon Glass | 29784d6 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 112 | source "test/lib/Kconfig" |
Heiko Stuebner | 96383bd | 2019-10-23 16:46:41 +0200 | [diff] [blame] | 113 | source "test/optee/Kconfig" |
Maxime Ripard | f2a9942 | 2016-07-05 10:26:46 +0200 | [diff] [blame] | 114 | source "test/overlay/Kconfig" |
Heinrich Schuchardt | 005acb2 | 2023-04-03 20:27:43 +0200 | [diff] [blame] | 115 | |
Simon Glass | 36778df | 2023-09-14 10:55:44 -0600 | [diff] [blame] | 116 | config POST |
| 117 | bool "Power On Self Test support" |
| 118 | help |
| 119 | See doc/README.POST for more details |
| 120 | |
Heinrich Schuchardt | 005acb2 | 2023-04-03 20:27:43 +0200 | [diff] [blame] | 121 | endmenu |