Home | History | Annotate | Download | only in robotests
      1 #############################################
      2 # Car Settings Robolectric test target. #
      3 #############################################
      4 LOCAL_PATH:= $(call my-dir)
      5 include $(CLEAR_VARS)
      6 
      7 LOCAL_MODULE := CarSettingsRoboTests
      8 
      9 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     10 
     11 LOCAL_JAVA_RESOURCE_DIRS := config
     12 
     13 # Include the testing libraries
     14 LOCAL_JAVA_LIBRARIES := \
     15     android.car \
     16     robolectric_android-all-stub \
     17     Robolectric_all-target \
     18     mockito-robolectric-prebuilt \
     19     truth-prebuilt
     20 
     21 LOCAL_INSTRUMENTATION_FOR := CarSettings
     22 
     23 LOCAL_MODULE_TAGS := optional
     24 
     25 include $(BUILD_STATIC_JAVA_LIBRARY)
     26 
     27 #############################################################
     28 # Car Settings runner target to run the previous target. #
     29 #############################################################
     30 include $(CLEAR_VARS)
     31 
     32 LOCAL_MODULE := RunCarSettingsRoboTests
     33 
     34 LOCAL_JAVA_LIBRARIES := \
     35     android.car \
     36     CarSettingsRoboTests \
     37     robolectric_android-all-stub \
     38     Robolectric_all-target \
     39     mockito-robolectric-prebuilt \
     40     truth-prebuilt
     41 
     42 LOCAL_TEST_PACKAGE := CarSettings
     43 
     44 LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
     45 
     46 include external/robolectric-shadows/run_robotests.mk
     47