blob: 102e8da00b4984d3ee7850de9fdea8d04c9591c1 [file] [log] [blame]
Matthew Fritze626a21b2016-08-17 11:52:39 -07001#############################################
James Lemieux22a39c22018-02-26 00:51:42 -08002# Settings Robolectric test target. #
Matthew Fritze626a21b2016-08-17 11:52:39 -07003#############################################
James Lemieux22a39c22018-02-26 00:51:42 -08004LOCAL_PATH := $(call my-dir)
Matthew Fritze626a21b2016-08-17 11:52:39 -07005include $(CLEAR_VARS)
6
James Lemieux22a39c22018-02-26 00:51:42 -08007LOCAL_MODULE := SettingsRoboTests
8
Matthew Fritze626a21b2016-08-17 11:52:39 -07009LOCAL_SRC_FILES := $(call all-java-files-under, src)
10
James Lemieux22a39c22018-02-26 00:51:42 -080011LOCAL_JAVA_RESOURCE_DIRS := config
Matthew Fritze626a21b2016-08-17 11:52:39 -070012
13LOCAL_JAVA_LIBRARIES := \
James Lemieux22a39c22018-02-26 00:51:42 -080014 robolectric_android-all-stub \
15 Robolectric_all-target \
16 mockito-robolectric-prebuilt \
17 truth-prebuilt
Matthew Fritze626a21b2016-08-17 11:52:39 -070018
Fan Zhangf3b06ef2016-09-22 10:54:15 -070019LOCAL_INSTRUMENTATION_FOR := Settings
Matthew Fritze626a21b2016-08-17 11:52:39 -070020
Matthew Fritze626a21b2016-08-17 11:52:39 -070021LOCAL_MODULE_TAGS := optional
22
23include $(BUILD_STATIC_JAVA_LIBRARY)
24
25#############################################################
James Lemieux22a39c22018-02-26 00:51:42 -080026# Settings runner target to run the previous target. #
Matthew Fritze626a21b2016-08-17 11:52:39 -070027#############################################################
28include $(CLEAR_VARS)
29
30LOCAL_MODULE := RunSettingsRoboTests
31
James Lemieux22a39c22018-02-26 00:51:42 -080032LOCAL_JAVA_LIBRARIES := \
33 SettingsRoboTests \
34 robolectric_android-all-stub \
35 Robolectric_all-target \
36 mockito-robolectric-prebuilt \
37 truth-prebuilt
Matthew Fritze626a21b2016-08-17 11:52:39 -070038
39LOCAL_TEST_PACKAGE := Settings
40
Ajay Nadathur4b4c8122017-02-21 17:44:10 -080041LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
42
Maurice Lame18902e2017-09-20 22:20:22 -070043LOCAL_ROBOTEST_TIMEOUT := 36000
44
James Lemieux22a39c22018-02-26 00:51:42 -080045include external/robolectric-shadows/run_robotests.mk