summaryrefslogtreecommitdiffstats
path: root/tests/robotests/Android.mk
blob: 6ec2e935e26a2ec9c3954da2d758daa99a3f3223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#############################################
# Turbo Robolectric test target. #
#############################################
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(call all-java-files-under, src)

# Include the testing libraries (JUnit4 + Robolectric libs).
LOCAL_STATIC_JAVA_LIBRARIES := \
    truth-prebuilt

LOCAL_JAVA_LIBRARIES := \
    junit \
    platform-robolectric-prebuilt \
    sdk_vcurrent

LOCAL_INSTRUMENTATION_FOR := SettingsIntelligence
LOCAL_MODULE := SettingsIntelligenceRoboTests

LOCAL_MODULE_TAGS := optional

include $(BUILD_STATIC_JAVA_LIBRARY)

#############################################################
# Turbo runner target to run the previous target. #
#############################################################
include $(CLEAR_VARS)

LOCAL_MODULE := RunSettingsIntelligenceRoboTests

LOCAL_SDK_VERSION := system_current

LOCAL_STATIC_JAVA_LIBRARIES := \
    SettingsIntelligenceRoboTests

LOCAL_TEST_PACKAGE := SettingsIntelligence

include prebuilts/misc/common/robolectric/run_robotests.mk