Kconfig 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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_RSA
  37. bool "Unit test for rsa_verify() function"
  38. depends on RSA
  39. depends on RSA_VERIFY_WITH_PKEY
  40. select IMAGE_SIGN_INFO
  41. default y
  42. help
  43. Enables rsa_verify() test, currently rsa_verify_with_pkey only()
  44. only, at the 'ut lib' command.
  45. endif
  46. config UT_COMPRESSION
  47. bool "Unit test for compression"
  48. depends on UNIT_TEST
  49. depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4
  50. default y
  51. help
  52. Enables tests for compression and decompression routines for simple
  53. sanity and for buffer overflow conditions.
  54. config UT_LOG
  55. bool "Unit tests for logging functions"
  56. depends on UNIT_TEST
  57. default y
  58. help
  59. Enables the 'ut log' command which tests logging functions like
  60. log_err().
  61. See also CONFIG_LOG_TEST which provides the 'log test' command.
  62. config UT_TIME
  63. bool "Unit tests for time functions"
  64. depends on UNIT_TEST
  65. help
  66. Enables the 'ut time' command which tests that the time functions
  67. work correctly. The test is fairly simple and will not catch all
  68. problems. But if you are having problems with udelay() and the like,
  69. this is a good place to start.
  70. config UT_UNICODE
  71. bool "Unit tests for Unicode functions"
  72. depends on UNIT_TEST
  73. default y
  74. help
  75. Enables the 'ut unicode' command which tests that the functions for
  76. manipulating Unicode strings work correctly.
  77. source "test/dm/Kconfig"
  78. source "test/env/Kconfig"
  79. source "test/optee/Kconfig"
  80. source "test/overlay/Kconfig"