• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#############################################################
2# Bluetooth Robolectric test target.                        #
3#############################################################
4LOCAL_PATH := $(call my-dir)
5include $(CLEAR_VARS)
6
7LOCAL_MODULE := BluetoothRoboTests
8LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
9LOCAL_LICENSE_CONDITIONS := notice
10
11LOCAL_SRC_FILES := $(call all-java-files-under, src)
12
13LOCAL_RESOURCE_DIR := \
14    $(LOCAL_PATH)/res
15
16LOCAL_JAVA_RESOURCE_DIRS := config
17
18# Include the testing libraries
19LOCAL_JAVA_LIBRARIES := \
20    robolectric_android-all-stub \
21    Robolectric_all-target \
22    mockito-robolectric-prebuilt \
23    truth-prebuilt
24
25LOCAL_INSTRUMENTATION_FOR := Bluetooth
26
27LOCAL_MODULE_TAGS := optional
28
29#include $(BUILD_STATIC_JAVA_LIBRARY)
30
31#############################################################
32# Bluetooth runner target to run the previous target.       #
33#############################################################
34include $(CLEAR_VARS)
35
36LOCAL_MODULE := RunBluetoothRoboTests
37LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
38LOCAL_LICENSE_CONDITIONS := notice
39
40LOCAL_JAVA_LIBRARIES := \
41    BluetoothRoboTests \
42    robolectric_android-all-stub \
43    Robolectric_all-target \
44    mockito-robolectric-prebuilt \
45    truth-prebuilt
46
47LOCAL_TEST_PACKAGE := Bluetooth
48
49LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
50
51#include external/robolectric-shadows/run_robotests.mk
52