1# -*- mode: makefile -*- 2 3LOCAL_PATH := $(call my-dir) 4 5define all-harmony-test-java-files-under 6 $(patsubst ./%,%,$(shell cd $(LOCAL_PATH) && find $(2) -name "*.java" 2> /dev/null)) 7endef 8 9harmony_jdwp_test_src_files := \ 10 $(call all-harmony-test-java-files-under,,src/test/java/) 11 12# Common JDWP settings 13jdwp_test_timeout_ms := 10000 # 10s. 14jdwp_test_target_runtime_common_args := \ 15 -Djpda.settings.verbose=true \ 16 -Djpda.settings.timeout=$(jdwp_test_timeout_ms) \ 17 -Djpda.settings.waitingTime=$(jdwp_test_timeout_ms) 18 19# CTS configuration 20# 21# We run in non-debug mode and support running with a forced abi. We must pass 22# -Xcompiler-option --debuggable to ART so the tests are compiled with full 23# debugging capability. 24cts_jdwp_test_runtime_target := dalvikvm|\#ABI\#| -XXlib:libart.so -Xcompiler-option --debuggable 25cts_jdwp_test_target_runtime_args := -Xcompiler-option --debuggable 26cts_jdwp_test_target_runtime_args += $(jdwp_test_target_runtime_common_args) 27cts_jdwp_test_target_runtime_args += -Djpda.settings.debuggeeJavaPath='$(cts_jdwp_test_runtime_target)' 28 29include $(CLEAR_VARS) 30LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 31LOCAL_JAVA_LIBRARIES := junit 32LOCAL_MODULE_TAGS := optional 33LOCAL_MODULE := CtsJdwp 34LOCAL_NO_EMMA_INSTRUMENT := true 35LOCAL_NO_EMMA_COMPILE := true 36LOCAL_CTS_TEST_PACKAGE := android.jdwp 37LOCAL_CTS_TARGET_RUNTIME_ARGS := $(cts_jdwp_test_target_runtime_args) 38include $(BUILD_CTS_TARGET_JAVA_LIBRARY) 39 40include $(CLEAR_VARS) 41LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 42LOCAL_JAVA_LIBRARIES := junit 43LOCAL_MODULE_TAGS := tests 44LOCAL_MODULE := apache-harmony-jdwp-tests 45LOCAL_NO_EMMA_INSTRUMENT := true 46LOCAL_NO_EMMA_COMPILE := true 47LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/jdwp 48include $(BUILD_JAVA_LIBRARY) 49 50include $(CLEAR_VARS) 51LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 52LOCAL_JAVA_LIBRARIES := junit-host 53LOCAL_MODULE := apache-harmony-jdwp-tests-host 54include $(BUILD_HOST_JAVA_LIBRARY) 55 56ifeq ($(HOST_OS),linux) 57include $(CLEAR_VARS) 58LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 59LOCAL_JAVA_LIBRARIES := junit-hostdex 60LOCAL_MODULE := apache-harmony-jdwp-tests-hostdex 61include $(BUILD_HOST_DALVIK_JAVA_LIBRARY) 62endif # HOST_OS == linux 63 64include $(LOCAL_PATH)/Android_debug_config.mk 65