roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 1 | ############################################# |
| 2 | # Car Settings Robolectric test target. # |
| 3 | ############################################# |
| 4 | LOCAL_PATH:= $(call my-dir) |
| 5 | include $(CLEAR_VARS) |
| 6 | |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 7 | LOCAL_MODULE := CarSettingsRoboTests |
| 8 | |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 9 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 10 | |
Jian Jin | ccbf466 | 2018-04-04 11:18:03 -0700 | [diff] [blame^] | 11 | LOCAL_JAVA_RESOURCE_DIRS := config |
| 12 | |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 13 | # Include the testing libraries |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 14 | LOCAL_JAVA_LIBRARIES := \ |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 15 | robolectric_android-all-stub \ |
| 16 | Robolectric_all-target \ |
| 17 | mockito-robolectric-prebuilt \ |
| 18 | truth-prebuilt |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 19 | |
| 20 | LOCAL_INSTRUMENTATION_FOR := CarSettings |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 21 | |
| 22 | LOCAL_MODULE_TAGS := optional |
| 23 | |
| 24 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 25 | |
| 26 | ############################################################# |
| 27 | # Car Settings runner target to run the previous target. # |
| 28 | ############################################################# |
| 29 | include $(CLEAR_VARS) |
| 30 | |
| 31 | LOCAL_MODULE := RunCarSettingsRoboTests |
| 32 | |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 33 | LOCAL_JAVA_LIBRARIES := \ |
| 34 | CarSettingsRoboTests \ |
| 35 | robolectric_android-all-stub \ |
| 36 | Robolectric_all-target \ |
| 37 | mockito-robolectric-prebuilt \ |
| 38 | truth-prebuilt |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 39 | |
| 40 | LOCAL_TEST_PACKAGE := CarSettings |
| 41 | |
smaraaosp | 8252dcd | 2017-11-17 13:04:39 -0800 | [diff] [blame] | 42 | LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src |
| 43 | |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 44 | include external/robolectric-shadows/run_robotests.mk |