diff --git a/core/base_rules.mk b/core/base_rules.mk index adf61f111..dbd89306b 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -274,6 +274,12 @@ ifeq ($(my_module_path),) endif endif +ifeq ($(LOCAL_IS_UNIT_TEST),true) + ifeq ($(LOCAL_IS_HOST_MODULE),true) + LOCAL_COMPATIBILITY_SUITE += host-unit-tests + endif +endif + ifeq ($(my_module_path),) install_path_var := $(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)OUT$(partition_tag)_$(LOCAL_MODULE_CLASS) ifeq (true,$(LOCAL_PRIVILEGED_MODULE)) diff --git a/core/definitions.mk b/core/definitions.mk index daac65249..5755debf5 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -107,7 +107,7 @@ ALL_VINTF_MANIFEST_FRAGMENTS_LIST:= # All tests that should be skipped in presubmit check. ALL_DISABLED_PRESUBMIT_TESTS := -# All compatibility suites mentioned in LOCAL_COMPATIBILITY_SUITES +# All compatibility suites mentioned in LOCAL_COMPATIBILITY_SUITE ALL_COMPATIBILITY_SUITES := # All compatibility suite files to dist.