Home | History | Annotate | Download | only in robotests
      1 # Bluetooth Robolectric test target.
      2 
      3 LOCAL_PATH:= $(call my-dir)
      4 include $(CLEAR_VARS)
      5 
      6 LOCAL_SRC_FILES := $(call all-java-files-under, src)
      7 
      8 # Include the testing libraries (JUnit4 + Robolectric libs).
      9 LOCAL_STATIC_JAVA_LIBRARIES := \
     10     truth-prebuilt \
     11     mockito-robolectric-prebuilt
     12 
     13 LOCAL_JAVA_LIBRARIES := \
     14     junit \
     15     platform-robolectric-3.6.1-prebuilt \
     16     sdk_vcurrent
     17 
     18 LOCAL_INSTRUMENTATION_FOR := Bluetooth
     19 LOCAL_MODULE := BluetoothRoboTests
     20 
     21 LOCAL_MODULE_TAGS := optional
     22 
     23 include $(BUILD_STATIC_JAVA_LIBRARY)
     24 
     25 
     26 # Bluetooth runner target to run the previous target.
     27 
     28 include $(CLEAR_VARS)
     29 
     30 LOCAL_MODULE := RunBluetoothRoboTests
     31 
     32 LOCAL_SDK_VERSION := current
     33 
     34 LOCAL_STATIC_JAVA_LIBRARIES := \
     35     BluetoothRoboTests
     36 
     37 LOCAL_TEST_PACKAGE := Bluetooth
     38 
     39 LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
     40 
     41 include prebuilts/misc/common/robolectric/3.6.1/run_robotests.mk
     42