Merge "PRODUCT_SEPOLICY_SPLIT forces Treble tests to run."
This commit is contained in:
commit
8271e66e46
2 changed files with 10 additions and 14 deletions
12
Android.mk
12
Android.mk
|
@ -244,11 +244,15 @@ ifneq ($(with_asan),true)
|
|||
ifneq ($(SELINUX_IGNORE_NEVERALLOWS),true)
|
||||
LOCAL_REQUIRED_MODULES += \
|
||||
sepolicy_tests \
|
||||
$(addprefix treble_sepolicy_tests_,$(PLATFORM_SEPOLICY_COMPAT_VERSIONS)) \
|
||||
$(addsuffix _compat_test,$(PLATFORM_SEPOLICY_COMPAT_VERSIONS)) \
|
||||
|
||||
endif
|
||||
endif
|
||||
ifeq ($(PRODUCT_SEPOLICY_SPLIT),true)
|
||||
LOCAL_REQUIRED_MODULES += \
|
||||
$(addprefix treble_sepolicy_tests_,$(PLATFORM_SEPOLICY_COMPAT_VERSIONS)) \
|
||||
|
||||
endif # PRODUCT_SEPOLICY_SPLIT
|
||||
endif # SELINUX_IGNORE_NEVERALLOWS
|
||||
endif # with_asan
|
||||
|
||||
ifneq ($(PLATFORM_SEPOLICY_VERSION),$(TOT_SEPOLICY_VERSION))
|
||||
LOCAL_REQUIRED_MODULES += \
|
||||
|
@ -1331,6 +1335,7 @@ $(HOST_OUT_EXECUTABLES)/build_sepolicy $(base_plat_pub_policy.conf) $(reqd_polic
|
|||
$(hide) $(HOST_OUT_EXECUTABLES)/build_sepolicy -a $(HOST_OUT_EXECUTABLES) filter_out \
|
||||
-f $(PRIVATE_REQD_MASK) -t $@
|
||||
|
||||
ifeq ($(PRODUCT_SEPOLICY_SPLIT),true)
|
||||
# Tests for Treble compatibility of current platform policy and vendor policy of
|
||||
# given release version.
|
||||
version_under_treble_tests := 26.0
|
||||
|
@ -1341,6 +1346,7 @@ version_under_treble_tests := 28.0
|
|||
include $(LOCAL_PATH)/treble_sepolicy_tests_for_release.mk
|
||||
version_under_treble_tests := 29.0
|
||||
include $(LOCAL_PATH)/treble_sepolicy_tests_for_release.mk
|
||||
endif # PRODUCT_SEPOLICY_SPLIT
|
||||
|
||||
version_under_treble_tests := 26.0
|
||||
include $(LOCAL_PATH)/compat.mk
|
||||
|
|
|
@ -91,18 +91,8 @@ $(LOCAL_BUILT_MODULE): PRIVATE_PLAT_SEPOLICY := $(built_plat_sepolicy)
|
|||
$(LOCAL_BUILT_MODULE): PRIVATE_PLAT_PUB_SEPOLICY := $(base_plat_pub_policy.cil)
|
||||
$(LOCAL_BUILT_MODULE): PRIVATE_FAKE_TREBLE :=
|
||||
ifeq ($(PRODUCT_FULL_TREBLE_OVERRIDE),true)
|
||||
# TODO(b/113124961): account for PRODUCT_SHIPPING_API_LEVEL when determining
|
||||
# fake treble status once emulator is no longer fake treble.
|
||||
#ifdef PRODUCT_SHIPPING_API_LEVEL
|
||||
# These requirements were originally added in Android Oreo. Devices
|
||||
# launching after this should not distinguish between
|
||||
# PRODUCT_FULL_TREBLE and PRODUCT_FULL_TREBLE_OVERRIDE since this could
|
||||
# lead to release problems where they think they pass this test but
|
||||
# fail it when it actually gets runned for compliance.
|
||||
#ifeq ($(call math_gt_or_eq,$(PRODUCT_SHIPPING_API_LEVEL),26),)
|
||||
# TODO(b/113124961): remove fake-treble
|
||||
$(LOCAL_BUILT_MODULE): PRIVATE_FAKE_TREBLE := --fake-treble
|
||||
#endif # if PRODUCT_SHIPPING_API_LEVEL < 26 (Android Oreo)
|
||||
#endif # PRODUCT_SHIPPING_API_LEVEL defined
|
||||
endif # PRODUCT_FULL_TREBLE_OVERRIDE = true
|
||||
$(LOCAL_BUILT_MODULE): $(HOST_OUT_EXECUTABLES)/treble_sepolicy_tests \
|
||||
$(all_fc_files) $(built_sepolicy) $(built_plat_sepolicy) \
|
||||
|
|
Loading…
Reference in a new issue