blob: cb51b4672102dc61c01a91bd001e77ae945dd498 [file] [log] [blame]
Joe Hershbergerfeb38472015-05-20 14:27:31 -05001menuconfig 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 Hershbergere721b882015-05-20 14:27:27 -05008
Heinrich Schuchardt2dd01112019-01-30 07:53:31 +01009config 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 Takahirof523400f2019-11-13 09:45:02 +090015 memcat(), memcyp(), memmove() and ASN1 compiler/decoder.
16
17if UT_LIB
18
19config 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
31endif
Heinrich Schuchardt2dd01112019-01-30 07:53:31 +010032
Joe Hershbergerc812f722015-05-20 14:27:30 -050033config UT_TIME
Simon Glass8271f5d2015-05-02 09:25:02 -060034 bool "Unit tests for time functions"
Joe Hershbergerfeb38472015-05-20 14:27:31 -050035 depends on UNIT_TEST
Simon Glass8271f5d2015-05-02 09:25:02 -060036 help
Joe Hershbergerc812f722015-05-20 14:27:30 -050037 Enables the 'ut time' command which tests that the time functions
Simon Glass8271f5d2015-05-02 09:25:02 -060038 work correctly. The test is fairly simple and will not catch all
39 problems. But if you are having problems with udelay() and the like,
40 this is a good place to start.
41
Heinrich Schuchardtf11a1642018-08-31 21:31:28 +020042config UT_UNICODE
43 bool "Unit tests for Unicode functions"
44 depends on UNIT_TEST
45 default y
46 help
47 Enables the 'ut unicode' command which tests that the functions for
48 manipulating Unicode strings work correctly.
49
Simon Glass19679822015-02-05 21:41:37 -070050source "test/dm/Kconfig"
Joe Hershberger421f86f2015-05-20 14:27:36 -050051source "test/env/Kconfig"
Heiko Stuebner96383bd2019-10-23 16:46:41 +020052source "test/optee/Kconfig"
Maxime Ripardf2a99422016-07-05 10:26:46 +020053source "test/overlay/Kconfig"