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 | 67daf61 | 2017-09-08 13:02:53 -0700 | [diff] [blame] | 7 | LOCAL_SRC_FILES := $(call all-java-files-under, runners/android_mk 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 \ |
| 16 | platform-robolectric-prebuilt \ |
| 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 | |
| 40 | include prebuilts/misc/common/robolectric/run_robotests.mk |