mm/slub, kunit: add a KUnit test for SLUB debugging functionality
[sfrench/cifs-2.6.git] / lib / Kconfig.debug
index 678c13967580ecca7b10daeb2223175d4ab218e3..7723f58a9394c519485664ac7b7fd98d2bdc9172 100644 (file)
@@ -2429,6 +2429,18 @@ config BITS_TEST
 
          If unsure, say N.
 
+config SLUB_KUNIT_TEST
+       tristate "KUnit test for SLUB cache error detection" if !KUNIT_ALL_TESTS
+       depends on SLUB_DEBUG && KUNIT
+       default KUNIT_ALL_TESTS
+       help
+         This builds SLUB allocator unit test.
+         Tests SLUB cache debugging functionality.
+         For more information on KUnit and unit tests in general please refer
+         to the KUnit documentation in Documentation/dev-tools/kunit/.
+
+         If unsure, say N.
+
 config TEST_UDELAY
        tristate "udelay test driver"
        help