Kconfig 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. config POST
  2. bool "Power On Self Test support"
  3. help
  4. See doc/README.POST for more details
  5. menu "Unit tests"
  6. config UNIT_TEST
  7. bool "Unit tests"
  8. help
  9. Select this to compile in unit tests for various parts of
  10. U-Boot. Test suites will be subcommands of the "ut" command.
  11. This does not require sandbox to be included, but it is most
  12. often used there.
  13. config SPL_UNIT_TEST
  14. bool "Unit tests in SPL"
  15. depends on SPL
  16. # We need to be able to unbind devices for tests to work
  17. select SPL_DM_DEVICE_REMOVE
  18. help
  19. Select this to enable unit tests in SPL. Most test are designed for
  20. running in U-Boot proper, but some are intended for SPL, such as
  21. of-platdata and SPL handover. To run these tests with the sandbox_spl
  22. board, use the -u (unit test) option.
  23. config UT_LIB
  24. bool "Unit tests for library functions"
  25. depends on UNIT_TEST
  26. default y if !SANDBOX_VPL
  27. help
  28. Enables the 'ut lib' command which tests library functions like
  29. memcat(), memcyp(), memmove() and ASN1 compiler/decoder.
  30. if UT_LIB
  31. config UT_LIB_ASN1
  32. bool "Unit test for asn1 compiler and decoder function"
  33. default y
  34. imply ASYMMETRIC_KEY_TYPE
  35. imply ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  36. imply X509_CERTIFICATE_PARSER
  37. imply PKCS7_MESSAGE_PARSER
  38. imply RSA_PUBLIC_KEY_PARSER
  39. help
  40. Enables a test which exercises asn1 compiler and decoder function
  41. via various parsers.
  42. config UT_LIB_CRYPT
  43. bool "Unit test for crypt-style password hashing"
  44. depends on !SPL && AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
  45. default y
  46. select CRYPT_PW
  47. select CRYPT_PW_SHA256
  48. select CRYPT_PW_SHA512
  49. help
  50. Enables a test for the crypt-style password hash functions.
  51. config UT_LIB_RSA
  52. bool "Unit test for rsa_verify() function"
  53. depends on RSA
  54. depends on RSA_VERIFY_WITH_PKEY
  55. select IMAGE_SIGN_INFO
  56. default y
  57. help
  58. Enables rsa_verify() test, currently rsa_verify_with_pkey only()
  59. only, at the 'ut lib' command.
  60. endif
  61. config UT_COMPRESSION
  62. bool "Unit test for compression"
  63. depends on UNIT_TEST
  64. depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4 && ZSTD
  65. default y
  66. help
  67. Enables tests for compression and decompression routines for simple
  68. sanity and for buffer overflow conditions.
  69. config UT_LOG
  70. bool "Unit tests for logging functions"
  71. depends on UNIT_TEST
  72. default y
  73. help
  74. Enables the 'ut log' command which tests logging functions like
  75. log_err().
  76. See also CONFIG_LOG_TEST which provides the 'log test' command.
  77. config UT_TIME
  78. bool "Unit tests for time functions"
  79. depends on UNIT_TEST
  80. help
  81. Enables the 'ut time' command which tests that the time functions
  82. work correctly. The test is fairly simple and will not catch all
  83. problems. But if you are having problems with udelay() and the like,
  84. this is a good place to start.
  85. config UT_UNICODE
  86. bool "Unit tests for Unicode functions"
  87. depends on UNIT_TEST
  88. default y
  89. select CHARSET
  90. help
  91. Enables the 'ut unicode' command which tests that the functions for
  92. manipulating Unicode strings work correctly.
  93. source "test/dm/Kconfig"
  94. source "test/env/Kconfig"
  95. source "test/lib/Kconfig"
  96. source "test/optee/Kconfig"
  97. source "test/overlay/Kconfig"
  98. endmenu