blob: edc810f114b53019d1c63c470fea5dab7249c6af [file] [log] [blame]
Matthew Fritze626a21b2016-08-17 11:52:39 -07001#############################################
2# Settings Robolectric test target. #
3#############################################
4LOCAL_PATH:= $(call my-dir)
5include $(CLEAR_VARS)
6
7LOCAL_SRC_FILES := $(call all-java-files-under, src)
8
9# Include the testing libraries (JUnit4 + Robolectric libs).
10LOCAL_STATIC_JAVA_LIBRARIES := \
Matthew Fritze9a3dc4e2016-09-16 11:14:33 -070011 platform-system-robolectric \
12 truth-prebuilt
Matthew Fritze626a21b2016-08-17 11:52:39 -070013
14LOCAL_JAVA_LIBRARIES := \
15 junit4-target \
16 platform-robolectric-prebuilt \
Fan Zhangf3b06ef2016-09-22 10:54:15 -070017 sdk_vcurrent
Matthew Fritze626a21b2016-08-17 11:52:39 -070018
Fan Zhangf3b06ef2016-09-22 10:54:15 -070019LOCAL_INSTRUMENTATION_FOR := Settings
Matthew Fritze626a21b2016-08-17 11:52:39 -070020LOCAL_MODULE := SettingsRoboTests
21
Matthew Fritze626a21b2016-08-17 11:52:39 -070022LOCAL_MODULE_TAGS := optional
23
24include $(BUILD_STATIC_JAVA_LIBRARY)
25
26#############################################################
27# Settings runner target to run the previous target. #
28#############################################################
29include $(CLEAR_VARS)
30
31LOCAL_MODULE := RunSettingsRoboTests
32
Matthew Fritze626a21b2016-08-17 11:52:39 -070033LOCAL_SDK_VERSION := current
34
35LOCAL_STATIC_JAVA_LIBRARIES := \
36 SettingsRoboTests
37
38LOCAL_TEST_PACKAGE := Settings
39
Matthew Fritze7a781072016-09-14 00:33:31 +000040include prebuilts/misc/common/robolectric/run_robotests.mk