binfmt_elf: Introduce KUnit test
[linux-2.6-block.git] / fs / Kconfig.binfmt
index 4d5ae61580aae336658beefe05bc1d7e15994582..f7065e825b7f0d4d0d25f142157588a5f58b18af 100644 (file)
@@ -28,6 +28,16 @@ config BINFMT_ELF
          ld.so (check the file <file:Documentation/Changes> for location and
          latest version).
 
+config BINFMT_ELF_KUNIT_TEST
+       bool "Build KUnit tests for ELF binary support" if !KUNIT_ALL_TESTS
+       depends on KUNIT=y && BINFMT_ELF=y
+       default KUNIT_ALL_TESTS
+       help
+         This builds the ELF loader KUnit tests, which try to gather
+         prior bug fixes into a regression test collection. This is really
+         only needed for debugging. Note that with CONFIG_COMPAT=y, the
+         compat_binfmt_elf KUnit test is also created.
+
 config COMPAT_BINFMT_ELF
        def_bool y
        depends on COMPAT && BINFMT_ELF