Merge branch '2021-12-23-make-OF_BOARD-a-boolean' into next
[platform/kernel/u-boot.git] / test / Kconfig
index 28704a2..e15ba23 100644 (file)
@@ -6,6 +6,16 @@ menuconfig UNIT_TEST
          This does not require sandbox to be included, but it is most
          often used there.
 
+config SPL_UNIT_TEST
+       bool "Unit tests in SPL"
+       # We need to be able to unbind devices for tests to work
+       select SPL_DM_DEVICE_REMOVE
+       help
+         Select this to enable unit tests in SPL. Most test are designed for
+         running in U-Boot proper, but some are intended for SPL, such as
+         of-platdata and SPL handover. To run these tests with the sandbox_spl
+         board, use the -u (unit test) option.
+
 config UT_LIB
        bool "Unit tests for library functions"
        depends on UNIT_TEST
@@ -28,6 +38,16 @@ config UT_LIB_ASN1
          Enables a test which exercises asn1 compiler and decoder function
          via various parsers.
 
+config UT_LIB_CRYPT
+       bool "Unit test for crypt-style password hashing"
+       depends on !SPL && AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
+       default y
+       select CRYPT_PW
+       select CRYPT_PW_SHA256
+       select CRYPT_PW_SHA512
+       help
+         Enables a test for the crypt-style password hash functions.
+
 config UT_LIB_RSA
        bool "Unit test for rsa_verify() function"
        depends on RSA
@@ -40,6 +60,15 @@ config UT_LIB_RSA
 
 endif
 
+config UT_COMPRESSION
+       bool "Unit test for compression"
+       depends on UNIT_TEST
+       depends on CMDLINE && GZIP_COMPRESSED && BZIP2 && LZMA && LZO && LZ4
+       default y
+       help
+         Enables tests for compression and decompression routines for simple
+         sanity and for buffer overflow conditions.
+
 config UT_LOG
        bool "Unit tests for logging functions"
        depends on UNIT_TEST