If unsure, say N.
 
 config KPROBES_SANITY_TEST
-       tristate "Kprobes sanity tests"
+       tristate "Kprobes sanity tests" if !KUNIT_ALL_TESTS
        depends on DEBUG_KERNEL
        depends on KPROBES
        depends on KUNIT
+       default KUNIT_ALL_TESTS
        help
          This option provides for testing basic kprobes functionality on
          boot. Samples of kprobe and kretprobe are inserted and
          If unsure, say N.
 
 config BITFIELD_KUNIT
-       tristate "KUnit test bitfield functions at runtime"
+       tristate "KUnit test bitfield functions at runtime" if !KUNIT_ALL_TESTS
        depends on KUNIT
+       default KUNIT_ALL_TESTS
        help
          Enable this option to test the bitfield functions at boot.
 
          optimized versions. If unsure, say N.
 
 config RESOURCE_KUNIT_TEST
-       tristate "KUnit test for resource API"
+       tristate "KUnit test for resource API" if !KUNIT_ALL_TESTS
        depends on KUNIT
+       default KUNIT_ALL_TESTS
        help
          This builds the resource API unit test.
          Tests the logic of API provided by resource.c and ioport.h.
          If unsure, say N.
 
 config CMDLINE_KUNIT_TEST
-       tristate "KUnit test for cmdline API"
+       tristate "KUnit test for cmdline API" if !KUNIT_ALL_TESTS
        depends on KUNIT
+       default KUNIT_ALL_TESTS
        help
          This builds the cmdline API unit test.
          Tests the logic of API provided by cmdline.c.
          If unsure, say N.
 
 config BITS_TEST
-       tristate "KUnit test for bits.h"
+       tristate "KUnit test for bits.h" if !KUNIT_ALL_TESTS
        depends on KUNIT
+       default KUNIT_ALL_TESTS
        help
          This builds the bits unit test.
          Tests the logic of macros defined in bits.h.