blob: 616504493c91c71225c20d24a6fbfd8edc058b82 [file] [log] [blame]
Eran Messericdc828d2017-10-23 18:51:45 +01001#############################################
2# KeyChain 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 mockito-robolectric-prebuilt \
12 platform-robolectric-android-all-stubs \
13 truth-prebuilt
14
15LOCAL_JAVA_LIBRARIES := \
16 junit \
James Lemieux41bf13d2018-01-05 15:10:51 -080017 platform-robolectric-3.6.1-prebuilt \
Eran Messericdc828d2017-10-23 18:51:45 +010018 telephony-common
19
20LOCAL_INSTRUMENTATION_FOR := KeyChain
21LOCAL_MODULE := KeyChainRoboTests
22
23LOCAL_MODULE_TAGS := optional
24
25include $(BUILD_STATIC_JAVA_LIBRARY)
26
27#############################################################
28# Settings runner target to run the previous target. #
29#############################################################
30include $(CLEAR_VARS)
31
32LOCAL_MODULE := RunKeyChainRoboTests
33
34LOCAL_SDK_VERSION := current
35
36LOCAL_STATIC_JAVA_LIBRARIES := \
37 KeyChainRoboTests
38
39LOCAL_TEST_PACKAGE := KeyChain
40
Eran Messericdc828d2017-10-23 18:51:45 +010041LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
42
43LOCAL_ROBOTEST_TIMEOUT := 36000
44
James Lemieux41bf13d2018-01-05 15:10:51 -080045include prebuilts/misc/common/robolectric/3.6.1/run_robotests.mk