Home | History | Annotate | Download | only in robotests
      1 #############################################
      2 #     KeyChain 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 := \
     11     mockito-robolectric-prebuilt \
     12     platform-robolectric-android-all-stubs \
     13     truth-prebuilt
     14 
     15 LOCAL_JAVA_LIBRARIES := \
     16     junit \
     17     platform-robolectric-3.6.1-prebuilt \
     18     telephony-common
     19 
     20 LOCAL_INSTRUMENTATION_FOR := KeyChain
     21 LOCAL_MODULE := KeyChainRoboTests
     22 
     23 LOCAL_MODULE_TAGS := optional
     24 
     25 include $(BUILD_STATIC_JAVA_LIBRARY)
     26 
     27 #############################################################
     28 # Settings runner target to run the previous target. #
     29 #############################################################
     30 include $(CLEAR_VARS)
     31 
     32 LOCAL_MODULE := RunKeyChainRoboTests
     33 
     34 LOCAL_SDK_VERSION := current
     35 
     36 LOCAL_STATIC_JAVA_LIBRARIES := \
     37     KeyChainRoboTests
     38 
     39 LOCAL_TEST_PACKAGE := KeyChain
     40 
     41 LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
     42 
     43 LOCAL_ROBOTEST_TIMEOUT := 36000
     44 
     45 include prebuilts/misc/common/robolectric/3.6.1/run_robotests.mk
     46