Bug: 71596155 Test: make RunSettingsRoboTests Change-Id: I46362bae1e3ddd3ce19ade1c93250d272f3366e6
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
#############################################
|
|
# Settings Robolectric test target. #
|
|
#############################################
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
|
|
# Include the testing libraries (JUnit4 + Robolectric libs).
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
mockito-robolectric-prebuilt \
|
|
platform-robolectric-android-all-stubs \
|
|
truth-prebuilt
|
|
|
|
LOCAL_JAVA_LIBRARIES := \
|
|
junit \
|
|
platform-robolectric-3.6.1-prebuilt \
|
|
telephony-common
|
|
|
|
LOCAL_INSTRUMENTATION_FOR := Settings
|
|
LOCAL_MODULE := SettingsRoboTests
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
include $(BUILD_STATIC_JAVA_LIBRARY)
|
|
|
|
#############################################################
|
|
# Settings runner target to run the previous target. #
|
|
#############################################################
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := RunSettingsRoboTests
|
|
|
|
LOCAL_SDK_VERSION := current
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
SettingsRoboTests
|
|
|
|
LOCAL_TEST_PACKAGE := Settings
|
|
|
|
LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
|
|
|
|
LOCAL_ROBOTEST_TIMEOUT := 36000
|
|
|
|
include prebuilts/misc/common/robolectric/3.6.1/run_robotests.mk
|