Kconfig 2.9 KB

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