board: visionfive2: Fixup memory size passed to kernel
[platform/kernel/u-boot.git] / test / Kconfig
index 2646e7d..6e859fb 100644 (file)
@@ -1,4 +1,11 @@
-menuconfig UNIT_TEST
+config POST
+       bool "Power On Self Test support"
+       help
+         See doc/README.POST for more details
+
+menu "Unit tests"
+
+config UNIT_TEST
        bool "Unit tests"
        help
          Select this to compile in unit tests for various parts of
@@ -8,6 +15,7 @@ menuconfig UNIT_TEST
 
 config SPL_UNIT_TEST
        bool "Unit tests in SPL"
+       depends on SPL
        # We need to be able to unbind devices for tests to work
        select SPL_DM_DEVICE_REMOVE
        help
@@ -19,7 +27,7 @@ config SPL_UNIT_TEST
 config UT_LIB
        bool "Unit tests for library functions"
        depends on UNIT_TEST
-       default y
+       default y if !SANDBOX_VPL
        help
          Enables the 'ut lib' command which tests library functions like
          memcat(), memcyp(), memmove() and ASN1 compiler/decoder.
@@ -38,6 +46,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
@@ -50,6 +68,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 && ZSTD
+       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
@@ -72,11 +99,15 @@ config UT_UNICODE
        bool "Unit tests for Unicode functions"
        depends on UNIT_TEST
        default y
+       select CHARSET
        help
          Enables the 'ut unicode' command which tests that the functions for
          manipulating Unicode strings work correctly.
 
 source "test/dm/Kconfig"
 source "test/env/Kconfig"
+source "test/lib/Kconfig"
 source "test/optee/Kconfig"
 source "test/overlay/Kconfig"
+
+endmenu