blob: 2ebc12f4269bebdc66b1d27975e5176b852531e3 [file] [log] [blame]
Fan Zhang7d9f2762017-08-30 14:29:39 -07001#############################################
2# Turbo 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 := \
11 platform-system-robolectric \
12 truth-prebuilt
13
14LOCAL_JAVA_LIBRARIES := \
15 junit \
16 platform-robolectric-prebuilt \
17 sdk_vcurrent
18
19LOCAL_INSTRUMENTATION_FOR := SettingsIntelligence
20LOCAL_MODULE := SettingsIntelligenceRoboTests
21
22LOCAL_MODULE_TAGS := optional
23
24include $(BUILD_STATIC_JAVA_LIBRARY)
25
26#############################################################
27# Turbo runner target to run the previous target. #
28#############################################################
29include $(CLEAR_VARS)
30
31LOCAL_MODULE := RunSettingsIntelligenceRoboTests
32
33LOCAL_SDK_VERSION := system_current
34
35LOCAL_STATIC_JAVA_LIBRARIES := \
36 SettingsIntelligenceRoboTests
37
38LOCAL_TEST_PACKAGE := SettingsIntelligence
39
40include prebuilts/misc/common/robolectric/run_robotests.mk