1############################################# 2# Settings Robolectric test target. # 3############################################# 4LOCAL_PATH:= $(call my-dir) 5include $(CLEAR_VARS) 6 7LOCAL_SRC_FILES := $(call all-java-files-under, src) 8 9# Include the testing libraries (JUnit4 + Robolectric libs). 10LOCAL_STATIC_JAVA_LIBRARIES := \ 11 platform-system-robolectric \ 12 truth-prebuilt 13 14LOCAL_JAVA_LIBRARIES := \ 15 junit \ 16 platform-robolectric-prebuilt \ 17 sdk_vcurrent \ 18 telephony-common 19 20LOCAL_INSTRUMENTATION_FOR := Settings 21LOCAL_MODULE := SettingsRoboTests 22 23LOCAL_MODULE_TAGS := optional 24 25include $(BUILD_STATIC_JAVA_LIBRARY) 26 27############################################################# 28# Settings runner target to run the previous target. # 29############################################################# 30include $(CLEAR_VARS) 31 32LOCAL_MODULE := RunSettingsRoboTests 33 34LOCAL_SDK_VERSION := current 35 36LOCAL_STATIC_JAVA_LIBRARIES := \ 37 SettingsRoboTests 38 39LOCAL_TEST_PACKAGE := Settings 40 41LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src 42 43include prebuilts/misc/common/robolectric/run_robotests.mk