Joe Hershberger | feb3847 | 2015-05-20 14:27:31 -0500 | [diff] [blame] | 1 | menuconfig UNIT_TEST |
| 2 | bool "Unit tests" |
| 3 | help |
| 4 | Select this to compile in unit tests for various parts of |
| 5 | U-Boot. Test suites will be subcommands of the "ut" command. |
| 6 | This does not require sandbox to be included, but it is most |
| 7 | often used there. |
Joe Hershberger | e721b88 | 2015-05-20 14:27:27 -0500 | [diff] [blame] | 8 | |
Heinrich Schuchardt | 2dd0111 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 9 | config UT_LIB |
| 10 | bool "Unit tests for library functions" |
| 11 | depends on UNIT_TEST |
| 12 | default y |
| 13 | help |
| 14 | Enables the 'ut lib' command which tests library functions like |
AKASHI Takahiro | f523400f | 2019-11-13 09:45:02 +0900 | [diff] [blame] | 15 | memcat(), memcyp(), memmove() and ASN1 compiler/decoder. |
| 16 | |
| 17 | if UT_LIB |
| 18 | |
| 19 | config UT_LIB_ASN1 |
| 20 | bool "Unit test for asn1 compiler and decoder function" |
| 21 | default y |
| 22 | imply ASYMMETRIC_KEY_TYPE |
| 23 | imply ASYMMETRIC_PUBLIC_KEY_SUBTYPE |
| 24 | imply X509_CERTIFICATE_PARSER |
| 25 | imply PKCS7_MESSAGE_PARSER |
| 26 | imply RSA_PUBLIC_KEY_PARSER |
| 27 | help |
| 28 | Enables a test which exercises asn1 compiler and decoder function |
| 29 | via various parsers. |
| 30 | |
AKASHI Takahiro | d090b39 | 2020-02-21 15:13:00 +0900 | [diff] [blame] | 31 | config UT_LIB_RSA |
| 32 | bool "Unit test for rsa_verify() function" |
| 33 | depends on RSA |
| 34 | depends on RSA_VERIFY_WITH_PKEY |
| 35 | select IMAGE_SIGN_INFO |
| 36 | default y |
| 37 | help |
| 38 | Enables rsa_verify() test, currently rsa_verify_with_pkey only() |
| 39 | only, at the 'ut lib' command. |
| 40 | |
AKASHI Takahiro | f523400f | 2019-11-13 09:45:02 +0900 | [diff] [blame] | 41 | endif |
Heinrich Schuchardt | 2dd0111 | 2019-01-30 07:53:31 +0100 | [diff] [blame] | 42 | |
Heinrich Schuchardt | 395041b | 2020-02-26 21:48:18 +0100 | [diff] [blame] | 43 | config UT_LOG |
| 44 | bool "Unit tests for logging functions" |
| 45 | depends on UNIT_TEST |
| 46 | default y |
| 47 | help |
| 48 | Enables the 'ut log' command which tests logging functions like |
| 49 | log_err(). |
| 50 | See also CONFIG_LOG_TEST which provides the 'log test' command. |
| 51 | |
Joe Hershberger | c812f72 | 2015-05-20 14:27:30 -0500 | [diff] [blame] | 52 | config UT_TIME |
Simon Glass | 8271f5d | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 53 | bool "Unit tests for time functions" |
Joe Hershberger | feb3847 | 2015-05-20 14:27:31 -0500 | [diff] [blame] | 54 | depends on UNIT_TEST |
Simon Glass | 8271f5d | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 55 | help |
Joe Hershberger | c812f72 | 2015-05-20 14:27:30 -0500 | [diff] [blame] | 56 | Enables the 'ut time' command which tests that the time functions |
Simon Glass | 8271f5d | 2015-05-02 09:25:02 -0600 | [diff] [blame] | 57 | work correctly. The test is fairly simple and will not catch all |
| 58 | problems. But if you are having problems with udelay() and the like, |
| 59 | this is a good place to start. |
| 60 | |
Heinrich Schuchardt | f11a164 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 61 | config UT_UNICODE |
| 62 | bool "Unit tests for Unicode functions" |
| 63 | depends on UNIT_TEST |
| 64 | default y |
| 65 | help |
| 66 | Enables the 'ut unicode' command which tests that the functions for |
| 67 | manipulating Unicode strings work correctly. |
| 68 | |
Simon Glass | 1967982 | 2015-02-05 21:41:37 -0700 | [diff] [blame] | 69 | source "test/dm/Kconfig" |
Joe Hershberger | 421f86f | 2015-05-20 14:27:36 -0500 | [diff] [blame] | 70 | source "test/env/Kconfig" |
Heiko Stuebner | 96383bd | 2019-10-23 16:46:41 +0200 | [diff] [blame] | 71 | source "test/optee/Kconfig" |
Maxime Ripard | f2a9942 | 2016-07-05 10:26:46 +0200 | [diff] [blame] | 72 | source "test/overlay/Kconfig" |