Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 1 | ############################################# |
| 2 | # Settings Robolectric test target. # |
| 3 | ############################################# |
| 4 | LOCAL_PATH:= $(call my-dir) |
| 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 8 | |
| 9 | # Include the testing libraries (JUnit4 + Robolectric libs). |
| 10 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Matthew Fritze | 9a3dc4e | 2016-09-16 11:14:33 -0700 | [diff] [blame] | 11 | platform-system-robolectric \ |
| 12 | truth-prebuilt |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 13 | |
| 14 | LOCAL_JAVA_LIBRARIES := \ |
| 15 | junit4-target \ |
| 16 | platform-robolectric-prebuilt \ |
Fan Zhang | f3b06ef | 2016-09-22 10:54:15 -0700 | [diff] [blame] | 17 | sdk_vcurrent |
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 | LOCAL_MODULE := SettingsRoboTests |
| 21 | |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 22 | LOCAL_MODULE_TAGS := optional |
| 23 | |
| 24 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 25 | |
| 26 | ############################################################# |
| 27 | # Settings runner target to run the previous target. # |
| 28 | ############################################################# |
| 29 | include $(CLEAR_VARS) |
| 30 | |
| 31 | LOCAL_MODULE := RunSettingsRoboTests |
| 32 | |
Matthew Fritze | 626a21b | 2016-08-17 11:52:39 -0700 | [diff] [blame] | 33 | LOCAL_SDK_VERSION := current |
| 34 | |
| 35 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 36 | SettingsRoboTests |
| 37 | |
| 38 | LOCAL_TEST_PACKAGE := Settings |
| 39 | |
Matthew Fritze | 7a78107 | 2016-09-14 00:33:31 +0000 | [diff] [blame] | 40 | include prebuilts/misc/common/robolectric/run_robotests.mk |