Kconfig 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 UT_LIB
  9. bool "Unit tests for library functions"
  10. depends on UNIT_TEST
  11. default y
  12. help
  13. Enables the 'ut lib' command which tests library functions like
  14. memcat(), memcyp(), memmove() and ASN1 compiler/decoder.
  15. if UT_LIB
  16. config UT_LIB_ASN1
  17. bool "Unit test for asn1 compiler and decoder function"
  18. default y
  19. imply ASYMMETRIC_KEY_TYPE
  20. imply ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  21. imply X509_CERTIFICATE_PARSER
  22. imply PKCS7_MESSAGE_PARSER
  23. imply RSA_PUBLIC_KEY_PARSER
  24. help
  25. Enables a test which exercises asn1 compiler and decoder function
  26. via various parsers.
  27. config UT_LIB_RSA
  28. bool "Unit test for rsa_verify() function"
  29. depends on RSA
  30. depends on RSA_VERIFY_WITH_PKEY
  31. select IMAGE_SIGN_INFO
  32. default y
  33. help
  34. Enables rsa_verify() test, currently rsa_verify_with_pkey only()
  35. only, at the 'ut lib' command.
  36. endif
  37. config UT_LOG
  38. bool "Unit tests for logging functions"
  39. depends on UNIT_TEST
  40. default y
  41. help
  42. Enables the 'ut log' command which tests logging functions like
  43. log_err().
  44. See also CONFIG_LOG_TEST which provides the 'log test' command.
  45. config UT_TIME
  46. bool "Unit tests for time functions"
  47. depends on UNIT_TEST
  48. help
  49. Enables the 'ut time' command which tests that the time functions
  50. work correctly. The test is fairly simple and will not catch all
  51. problems. But if you are having problems with udelay() and the like,
  52. this is a good place to start.
  53. config UT_UNICODE
  54. bool "Unit tests for Unicode functions"
  55. depends on UNIT_TEST
  56. default y
  57. help
  58. Enables the 'ut unicode' command which tests that the functions for
  59. manipulating Unicode strings work correctly.
  60. source "test/dm/Kconfig"
  61. source "test/env/Kconfig"
  62. source "test/optee/Kconfig"
  63. source "test/overlay/Kconfig"