blob: fda35a933b15ae0e498f98ee5e2e3f3d16cb7b17 [file] [log] [blame]
include $(call all-subdir-makefiles)
LOCAL_PATH:= $(call my-dir)
module_name = cpuhotplug
define $(module_name)_add_executable
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := tests
LOCAL_MODULE := $1.sh
systemtarball: $1.sh
LOCAL_SRC_FILES := $1.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/$(module_name)
include $(BUILD_PREBUILT)
endef
test_num := 01 02 03 04 05 06 07 08
$(foreach item,$(test_num),$(eval $(call $(module_name)_add_executable, $(module_name)_$(item))))
define $(module_name)_etc_add_executable
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := tests
LOCAL_MODULE := $1.sh
systemtarball: $1.sh
LOCAL_SRC_FILES := $1.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/$(module_name)
include $(BUILD_PREBUILT)
endef
test_names := 1_sanity_check z_sanity_check
$(foreach item,$(test_names),$(eval $(call $(module_name)_etc_add_executable, $(item))))