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