Fan Zhang | 7d9f276 | 2017-08-30 14:29:39 -0700 | [diff] [blame] | 1 | ############################################# |
| 2 | # Turbo Robolectric test target. # |
| 3 | ############################################# |
| 4 | LOCAL_PATH:= $(call my-dir) |
| 5 | include $(CLEAR_VARS) |
| 6 | |
Fan Zhang | 112aa3c | 2017-09-29 13:03:19 -0700 | [diff] [blame] | 7 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
Fan Zhang | 7d9f276 | 2017-08-30 14:29:39 -0700 | [diff] [blame] | 8 | |
| 9 | # Include the testing libraries (JUnit4 + Robolectric libs). |
| 10 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Fan Zhang | c4887f6 | 2017-09-19 17:35:23 -0700 | [diff] [blame] | 11 | mockito-robolectric-prebuilt \ |
Fan Zhang | 7d9f276 | 2017-08-30 14:29:39 -0700 | [diff] [blame] | 12 | truth-prebuilt |
| 13 | |
| 14 | LOCAL_JAVA_LIBRARIES := \ |
| 15 | junit \ |
Fan Zhang | 04c0816 | 2017-09-27 10:23:23 -0700 | [diff] [blame] | 16 | platform-robolectric-3.4.2-prebuilt \ |
Fan Zhang | 7d9f276 | 2017-08-30 14:29:39 -0700 | [diff] [blame] | 17 | sdk_vcurrent |
| 18 | |
| 19 | LOCAL_INSTRUMENTATION_FOR := SettingsIntelligence |
| 20 | LOCAL_MODULE := SettingsIntelligenceRoboTests |
| 21 | |
| 22 | LOCAL_MODULE_TAGS := optional |
| 23 | |
| 24 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 25 | |
| 26 | ############################################################# |
| 27 | # Turbo runner target to run the previous target. # |
| 28 | ############################################################# |
| 29 | include $(CLEAR_VARS) |
| 30 | |
| 31 | LOCAL_MODULE := RunSettingsIntelligenceRoboTests |
| 32 | |
| 33 | LOCAL_SDK_VERSION := system_current |
| 34 | |
| 35 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 36 | SettingsIntelligenceRoboTests |
| 37 | |
| 38 | LOCAL_TEST_PACKAGE := SettingsIntelligence |
| 39 | |
Fan Zhang | 04c0816 | 2017-09-27 10:23:23 -0700 | [diff] [blame] | 40 | include prebuilts/misc/common/robolectric/3.4.2/run_robotests.mk |