VtsKernelConfig: add lmk kernel configuration checks

Kernel configuration options should include either
CONFIG_ANDROID_LOW_MEMORY_KILLER for in-kernel lowmemorykiller driver
to be used or a combination of CONFIG_MEMCG and CONFIG_MEMCG_SWAP
if userspace lmkd is preferred.

Bug: 71502948

Change-Id: I86688b58d0d2049401d720a36bac25c63974ec15
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
diff --git a/config/VtsKernelConfigTest.py b/config/VtsKernelConfigTest.py
index 367f01e..03f7f16 100644
--- a/config/VtsKernelConfigTest.py
+++ b/config/VtsKernelConfigTest.py
@@ -198,6 +198,12 @@
                 "CONFIG_ACPI" not in device_configs):
             should_be_enabled.append("CONFIG_OF | CONFIG_ACPI")
 
+        if ("CONFIG_ANDROID_LOW_MEMORY_KILLER" not in device_configs and
+                ("CONFIG_MEMCG" not in device_configs or
+                 "CONFIG_MEMCG_SWAP" not in device_configs)):
+            should_be_enabled.append("CONFIG_ANDROID_LOW_MEMORY_KILLER | "
+                                     "(CONFIG_MEMCG & CONFIG_MEMCG_SWAP)")
+
         asserts.assertTrue(
             len(should_be_enabled) == 0 and len(should_not_be_set) == 0 and
             len(incorrect_config_state) == 0,