Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 1 | config POST |
| 2 | bool "Power On Self Test support" |
| 3 | help |
| 4 | See doc/README.POST for more details |
| 5 | |
Heinrich Schuchardt | 76a00a3 | 2023-04-03 20:27:43 +0200 | [diff] [blame] | 6 | menu "Unit tests" |
| 7 | |
| 8 | config UNIT_TEST |
Joe Hershberger | 437176b | 2015-05-20 14:27:31 -0500 | [diff] [blame] | 9 | bool "Unit tests" |
| 10 | help |
| 11 | Select this to compile in unit tests for various parts of |
| 12 | U-Boot. Test suites will be subcommands of the "ut" command. |
| 13 | This does not require sandbox to be included, but it is most |
| 14 | often used there. |
Joe Hershberger | 3a77be5 | 2015-05-20 14:27:27 -0500 | [diff] [blame] | 15 | |
Simon Glass | bf40eee | 2020-10-25 20:38:26 -0600 | [diff] [blame] | 16 | config SPL_UNIT_TEST |
| 17 | bool "Unit tests in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 18 | depends on SPL |
Simon Glass | bf40eee | 2020-10-25 20:38:26 -0600 | [diff] [blame] | 19 | # We need to be able to unbind devices for tests to work |
| 20 | select SPL_DM_DEVICE_REMOVE |
| 21 | help |
| 22 | Select this to enable unit tests in SPL. Most test are designed for |
| 23 | running in U-Boot proper, but some are intended for SPL, such as |
| 24 | of-platdata and SPL handover. To run these tests with the sandbox_spl |
| 25 | board, use the -u (unit test) option. |
| 26 | |
Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 27 | config UT_LIB |
| 28 | bool "Unit tests for library functions" |
| 29 | depends on UNIT_TEST |
Simon Glass | 644d807 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 30 | default y if !SANDBOX_VPL |
Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 31 | help |
| 32 | Enables the 'ut lib' command which tests library functions like |
AKASHI Takahiro | b5124e3 | 2019-11-13 09:45:02 +0900 | [diff] [blame] | 33 | memcat(), memcyp(), memmove() and ASN1 compiler/decoder. |
| 34 | |
| 35 | if UT_LIB |
| 36 | |
| 37 | config UT_LIB_ASN1 |
| 38 | bool "Unit test for asn1 compiler and decoder function" |
| 39 | default y |
| 40 | imply ASYMMETRIC_KEY_TYPE |
| 41 | imply ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
| 42 | imply X509_CERTIFICATE_PARSER |
| 43 | imply PKCS7_MESSAGE_PARSER |
| 44 | imply RSA_PUBLIC_KEY_PARSER |
| 45 | help |
| 46 | Enables a test which exercises asn1 compiler and decoder function |
| 47 | via various parsers. |
| 48 | |
Steffen Jaeckel | 229bd51 | 2021-07-08 15:57:33 +0200 | [diff] [blame] | 49 | config UT_LIB_CRYPT |
| 50 | bool "Unit test for crypt-style password hashing" |
| 51 | depends on !SPL && AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION |
| 52 | default y |
| 53 | select CRYPT_PW |
| 54 | select CRYPT_PW_SHA256 |
| 55 | select CRYPT_PW_SHA512 |
| 56 | help |
| 57 | Enables a test for the crypt-style password hash functions. |
| 58 | |
AKASHI Takahiro | f24cd6c | 2020-02-21 15:13:00 +0900 | [diff] [blame] | 59 | config UT_LIB_RSA |
| 60 | bool "Unit test for rsa_verify() function" |
| 61 | depends on RSA |
| 62 | depends on RSA_VERIFY_WITH_PKEY |
| 63 | select IMAGE_SIGN_INFO |
| 64 | default y |
| 65 | help |
| 66 | Enables rsa_verify() test, currently rsa_verify_with_pkey only() |
| 67 | only, at the 'ut lib' command. |
| 68 | |
AKASHI Takahiro | b5124e3 | 2019-11-13 09:45:02 +0900 | [diff] [blame] | 69 | endif |
Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 70 | |
Heinrich Schuchardt | 7b3b003 | 2020-10-31 08:59:25 +0100 | [diff] [blame] | 71 | config UT_COMPRESSION |
| 72 | bool "Unit test for compression" |
| 73 | depends on UNIT_TEST |
Brandon Maier | 61c55e8 | 2023-01-12 10:27:46 -0600 | [diff] [blame] | 74 | depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4 && ZSTD |
Heinrich Schuchardt | 7b3b003 | 2020-10-31 08:59:25 +0100 | [diff] [blame] | 75 | default y |
| 76 | help |
| 77 | Enables tests for compression and decompression routines for simple |
| 78 | sanity and for buffer overflow conditions. |
| 79 | |
Heinrich Schuchardt | f433d50 | 2020-02-26 21:48:18 +0100 | [diff] [blame] | 80 | config UT_LOG |
| 81 | bool "Unit tests for logging functions" |
| 82 | depends on UNIT_TEST |
| 83 | default y |
| 84 | help |
| 85 | Enables the 'ut log' command which tests logging functions like |
| 86 | log_err(). |
| 87 | See also CONFIG_LOG_TEST which provides the 'log test' command. |
| 88 | |
Joe Hershberger | ee20efe | 2015-05-20 14:27:30 -0500 | [diff] [blame] | 89 | config UT_TIME |
Simon Glass | 9b4221b | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 90 | bool "Unit tests for time functions" |
Joe Hershberger | 437176b | 2015-05-20 14:27:31 -0500 | [diff] [blame] | 91 | depends on UNIT_TEST |
Simon Glass | 9b4221b | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 92 | help |
Joe Hershberger | ee20efe | 2015-05-20 14:27:30 -0500 | [diff] [blame] | 93 | Enables the 'ut time' command which tests that the time functions |
Simon Glass | 9b4221b | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 94 | work correctly. The test is fairly simple and will not catch all |
| 95 | problems. But if you are having problems with udelay() and the like, |
| 96 | this is a good place to start. |
| 97 | |
Heinrich Schuchardt | b8b6c81 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 98 | config UT_UNICODE |
| 99 | bool "Unit tests for Unicode functions" |
| 100 | depends on UNIT_TEST |
| 101 | default y |
Heinrich Schuchardt | 013aabb | 2022-05-02 06:27:00 +0200 | [diff] [blame] | 102 | select CHARSET |
Heinrich Schuchardt | b8b6c81 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 103 | help |
| 104 | Enables the 'ut unicode' command which tests that the functions for |
| 105 | manipulating Unicode strings work correctly. |
| 106 | |
Simon Glass | 9dd430d | 2015-02-05 21:41:37 -0700 | [diff] [blame] | 107 | source "test/dm/Kconfig" |
Joe Hershberger | 26e038f | 2015-05-20 14:27:36 -0500 | [diff] [blame] | 108 | source "test/env/Kconfig" |
Simon Glass | 644d807 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 109 | source "test/lib/Kconfig" |
Heiko Stuebner | 1c9bb9b | 2019-10-23 16:46:41 +0200 | [diff] [blame] | 110 | source "test/optee/Kconfig" |
Maxime Ripard | 0e31a11 | 2016-07-05 10:26:46 +0200 | [diff] [blame] | 111 | source "test/overlay/Kconfig" |
Heinrich Schuchardt | 76a00a3 | 2023-04-03 20:27:43 +0200 | [diff] [blame] | 112 | |
| 113 | endmenu |