Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 1 | ############################################# |
James Lemieux | 22a39c2 | 2018-02-26 00:51:42 -0800 | [diff] [blame] | 2 | # Settings Robolectric test target. # |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 3 | ############################################# |
James Lemieux | 22a39c2 | 2018-02-26 00:51:42 -0800 | [diff] [blame] | 4 | LOCAL_PATH := $(call my-dir) |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 5 | include $(CLEAR_VARS) |
| 6 | |
James Lemieux | 22a39c2 | 2018-02-26 00:51:42 -0800 | [diff] [blame] | 7 | LOCAL_MODULE := SettingsRoboTests |
| 8 | |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 9 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 10 | |
James Lemieux | 22a39c2 | 2018-02-26 00:51:42 -0800 | [diff] [blame] | 11 | LOCAL_JAVA_RESOURCE_DIRS := config |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 12 | |
| 13 | LOCAL_JAVA_LIBRARIES := \ |
James Lemieux | 22a39c2 | 2018-02-26 00:51:42 -0800 | [diff] [blame] | 14 | robolectric_android-all-stub \ |
| 15 | Robolectric_all-target \ |
| 16 | mockito-robolectric-prebuilt \ |
| 17 | truth-prebuilt |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 18 | |
Fan Zhang | f3b06ef | 2016-09-22 10:54:15 -0700 | [diff] [blame] | 19 | LOCAL_INSTRUMENTATION_FOR := Settings |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 20 | |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 21 | LOCAL_MODULE_TAGS := optional |
| 22 | |
| 23 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 24 | |
| 25 | ############################################################# |
James Lemieux | 22a39c2 | 2018-02-26 00:51:42 -0800 | [diff] [blame] | 26 | # Settings runner target to run the previous target. # |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 27 | ############################################################# |
| 28 | include $(CLEAR_VARS) |
| 29 | |
| 30 | LOCAL_MODULE := RunSettingsRoboTests |
| 31 | |
James Lemieux | 22a39c2 | 2018-02-26 00:51:42 -0800 | [diff] [blame] | 32 | LOCAL_JAVA_LIBRARIES := \ |
| 33 | SettingsRoboTests \ |
| 34 | robolectric_android-all-stub \ |
| 35 | Robolectric_all-target \ |
| 36 | mockito-robolectric-prebuilt \ |
| 37 | truth-prebuilt |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 38 | |
| 39 | LOCAL_TEST_PACKAGE := Settings |
| 40 | |
Ajay Nadathur | 4b4c812 | 2017-02-21 17:44:10 -0800 | [diff] [blame] | 41 | LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src |
| 42 | |
Maurice Lam | e18902e | 2017-09-20 22:20:22 -0700 | [diff] [blame] | 43 | LOCAL_ROBOTEST_TIMEOUT := 36000 |
| 44 | |
James Lemieux | 22a39c2 | 2018-02-26 00:51:42 -0800 | [diff] [blame] | 45 | include external/robolectric-shadows/run_robotests.mk |