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.syncPort=34016 \ 17 -Djpda.settings.timeout=$(jdwp_test_timeout_ms) \ 18 -Djpda.settings.waitingTime=$(jdwp_test_timeout_ms) 19 20# CTS configuration 21# 22# We run in non-debug mode and support running with a forced abi. We must pass 23# -Xcompiler-option --debuggable to ART so the tests are compiled with full 24# debugging capability. 25cts_jdwp_test_runtime_target := dalvikvm|\#ABI\#| -XXlib:libart.so -Xcompiler-option --debuggable 26cts_jdwp_test_target_runtime_args := -Xcompiler-option --debuggable 27cts_jdwp_test_target_runtime_args += $(jdwp_test_target_runtime_common_args) 28cts_jdwp_test_target_runtime_args += -Djpda.settings.debuggeeJavaPath='$(cts_jdwp_test_runtime_target)' 29 30include $(CLEAR_VARS) 31LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 32LOCAL_JAVA_LIBRARIES := junit-targetdex 33LOCAL_MODULE_TAGS := optional 34LOCAL_MODULE := CtsJdwp 35LOCAL_NO_EMMA_INSTRUMENT := true 36LOCAL_NO_EMMA_COMPILE := true 37LOCAL_CTS_TEST_PACKAGE := android.jdwp 38LOCAL_CTS_TARGET_RUNTIME_ARGS := $(cts_jdwp_test_target_runtime_args) 39include $(BUILD_CTS_TARGET_JAVA_LIBRARY) 40 41include $(CLEAR_VARS) 42LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 43LOCAL_JAVA_LIBRARIES := junit-targetdex 44LOCAL_MODULE_TAGS := tests 45LOCAL_MODULE := apache-harmony-jdwp-tests 46LOCAL_NO_EMMA_INSTRUMENT := true 47LOCAL_NO_EMMA_COMPILE := true 48LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/jdwp 49include $(BUILD_JAVA_LIBRARY) 50 51include $(CLEAR_VARS) 52LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 53LOCAL_JAVA_LIBRARIES := junit 54LOCAL_MODULE := apache-harmony-jdwp-tests-host 55include $(BUILD_HOST_JAVA_LIBRARY) 56 57ifeq ($(HOST_OS),linux) 58include $(CLEAR_VARS) 59LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 60LOCAL_JAVA_LIBRARIES := junit-hostdex 61LOCAL_MODULE := apache-harmony-jdwp-tests-hostdex 62include $(BUILD_HOST_DALVIK_JAVA_LIBRARY) 63endif # HOST_OS == linux 64 65include $(LOCAL_PATH)/Android_debug_config.mk 66