1 # -*- mode: makefile -*- 2 3 LOCAL_PATH := $(call my-dir) 4 5 define all-harmony-test-java-files-under 6 $(patsubst ./%,%,$(shell cd $(LOCAL_PATH) && find $(2) -name "*.java" 2> /dev/null)) 7 endef 8 9 harmony_jdwp_test_src_files := \ 10 $(call all-harmony-test-java-files-under,,src/test/java/) 11 12 # Common JDWP settings 13 jdwp_test_timeout_ms := 10000 # 10s. 14 jdwp_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. 24 cts_jdwp_test_runtime_target := dalvikvm|\#ABI\#| -XXlib:libart.so -Xcompiler-option --debuggable 25 cts_jdwp_test_target_runtime_args := -Xcompiler-option --debuggable 26 cts_jdwp_test_target_runtime_args += $(jdwp_test_target_runtime_common_args) 27 cts_jdwp_test_target_runtime_args += -Djpda.settings.debuggeeJavaPath='$(cts_jdwp_test_runtime_target)' 28 29 include $(CLEAR_VARS) 30 LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 31 LOCAL_JAVA_LIBRARIES := junit-targetdex 32 LOCAL_MODULE_TAGS := optional 33 LOCAL_MODULE := CtsJdwp 34 LOCAL_NO_EMMA_INSTRUMENT := true 35 LOCAL_NO_EMMA_COMPILE := true 36 LOCAL_CTS_TEST_PACKAGE := android.jdwp 37 LOCAL_CTS_TARGET_RUNTIME_ARGS := $(cts_jdwp_test_target_runtime_args) 38 LOCAL_JAVA_LANGUAGE_VERSION := 1.8 39 include $(BUILD_CTS_TARGET_JAVA_LIBRARY) 40 41 include $(CLEAR_VARS) 42 LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 43 LOCAL_JAVA_LIBRARIES := junit-targetdex 44 LOCAL_MODULE_TAGS := tests 45 LOCAL_MODULE := apache-harmony-jdwp-tests 46 LOCAL_NO_EMMA_INSTRUMENT := true 47 LOCAL_NO_EMMA_COMPILE := true 48 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/jdwp 49 LOCAL_JAVA_LANGUAGE_VERSION := 1.8 50 include $(BUILD_JAVA_LIBRARY) 51 52 include $(CLEAR_VARS) 53 LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 54 LOCAL_JAVA_LIBRARIES := junit 55 LOCAL_MODULE := apache-harmony-jdwp-tests-host 56 LOCAL_JAVA_LANGUAGE_VERSION := 1.8 57 include $(BUILD_HOST_JAVA_LIBRARY) 58 59 ifeq ($(HOST_OS),linux) 60 include $(CLEAR_VARS) 61 LOCAL_SRC_FILES := $(harmony_jdwp_test_src_files) 62 LOCAL_JAVA_LIBRARIES := junit-hostdex 63 LOCAL_MODULE := apache-harmony-jdwp-tests-hostdex 64 LOCAL_JAVA_LANGUAGE_VERSION := 1.8 65 include $(BUILD_HOST_DALVIK_JAVA_LIBRARY) 66 endif # HOST_OS == linux 67 68 include $(LOCAL_PATH)/Android_debug_config.mk 69