Simon Glass | f37d29a | 2023-09-14 10:55:44 -0600 | [diff] [blame] | 1 | menu "Testing" |
Heinrich Schuchardt | 76a00a3 | 2023-04-03 20:27:43 +0200 | [diff] [blame] | 2 | |
| 3 | config UNIT_TEST |
Joe Hershberger | 437176b | 2015-05-20 14:27:31 -0500 | [diff] [blame] | 4 | bool "Unit tests" |
Simon Glass | 2a4df7c | 2023-10-26 14:31:17 -0400 | [diff] [blame] | 5 | depends on CMDLINE |
Joe Hershberger | 437176b | 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 | 3a77be5 | 2015-05-20 14:27:27 -0500 | [diff] [blame] | 11 | |
Simon Glass | bf40eee | 2020-10-25 20:38:26 -0600 | [diff] [blame] | 12 | config SPL_UNIT_TEST |
| 13 | bool "Unit tests in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 14 | depends on SPL |
Simon Glass | bf40eee | 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 | f77a635 | 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 | 644d807 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 26 | default y if !SANDBOX_VPL |
Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 27 | help |
| 28 | Enables the 'ut lib' command which tests library functions like |
AKASHI Takahiro | b5124e3 | 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" |
| 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 | |
Steffen Jaeckel | 229bd51 | 2021-07-08 15:57:33 +0200 | [diff] [blame] | 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 | |
AKASHI Takahiro | f24cd6c | 2020-02-21 15:13:00 +0900 | [diff] [blame] | 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 | |
AKASHI Takahiro | b5124e3 | 2019-11-13 09:45:02 +0900 | [diff] [blame] | 65 | endif |
Heinrich Schuchardt | f77a635 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 66 | |
Heinrich Schuchardt | 7b3b003 | 2020-10-31 08:59:25 +0100 | [diff] [blame] | 67 | config UT_COMPRESSION |
| 68 | bool "Unit test for compression" |
| 69 | depends on UNIT_TEST |
Brandon Maier | 61c55e8 | 2023-01-12 10:27:46 -0600 | [diff] [blame] | 70 | depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4 && ZSTD |
Heinrich Schuchardt | 7b3b003 | 2020-10-31 08:59:25 +0100 | [diff] [blame] | 71 | default y |
| 72 | help |
| 73 | Enables tests for compression and decompression routines for simple |
| 74 | sanity and for buffer overflow conditions. |
| 75 | |
Heinrich Schuchardt | f433d50 | 2020-02-26 21:48:18 +0100 | [diff] [blame] | 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 | |
Joe Hershberger | ee20efe | 2015-05-20 14:27:30 -0500 | [diff] [blame] | 85 | config UT_TIME |
Simon Glass | 9b4221b | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 86 | bool "Unit tests for time functions" |
Joe Hershberger | 437176b | 2015-05-20 14:27:31 -0500 | [diff] [blame] | 87 | depends on UNIT_TEST |
Simon Glass | 9b4221b | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 88 | help |
Joe Hershberger | ee20efe | 2015-05-20 14:27:30 -0500 | [diff] [blame] | 89 | Enables the 'ut time' command which tests that the time functions |
Simon Glass | 9b4221b | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 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 | |
Heinrich Schuchardt | b8b6c81 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 94 | config UT_UNICODE |
| 95 | bool "Unit tests for Unicode functions" |
| 96 | depends on UNIT_TEST |
| 97 | default y |
Heinrich Schuchardt | 013aabb | 2022-05-02 06:27:00 +0200 | [diff] [blame] | 98 | select CHARSET |
Heinrich Schuchardt | b8b6c81 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 99 | help |
| 100 | Enables the 'ut unicode' command which tests that the functions for |
| 101 | manipulating Unicode strings work correctly. |
| 102 | |
Simon Glass | 9dd430d | 2015-02-05 21:41:37 -0700 | [diff] [blame] | 103 | source "test/dm/Kconfig" |
Joe Hershberger | 26e038f | 2015-05-20 14:27:36 -0500 | [diff] [blame] | 104 | source "test/env/Kconfig" |
Sean Anderson | dcd91b1 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 105 | source "test/image/Kconfig" |
Simon Glass | 644d807 | 2022-08-01 07:57:59 -0600 | [diff] [blame] | 106 | source "test/lib/Kconfig" |
Heiko Stuebner | 1c9bb9b | 2019-10-23 16:46:41 +0200 | [diff] [blame] | 107 | source "test/optee/Kconfig" |
Maxime Ripard | 0e31a11 | 2016-07-05 10:26:46 +0200 | [diff] [blame] | 108 | source "test/overlay/Kconfig" |
Heinrich Schuchardt | 76a00a3 | 2023-04-03 20:27:43 +0200 | [diff] [blame] | 109 | |
Simon Glass | f37d29a | 2023-09-14 10:55:44 -0600 | [diff] [blame] | 110 | config POST |
| 111 | bool "Power On Self Test support" |
| 112 | help |
| 113 | See doc/README.POST for more details |
| 114 | |
Heinrich Schuchardt | 76a00a3 | 2023-04-03 20:27:43 +0200 | [diff] [blame] | 115 | endmenu |