LOCAL_PATH := $(call my-dir) ############################################################# # Car Dialer Robolectric test target. # ############################################################# include $(CLEAR_VARS) LOCAL_MODULE := CarDialerRoboTests LOCAL_MODULE_CLASS := JAVA_LIBRARIES LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_JAVA_RESOURCE_DIRS := config # Include the testing libraries LOCAL_JAVA_LIBRARIES := \ android.car \ robolectric_android-all-stub \ Robolectric_all-target \ mockito-robolectric-prebuilt \ truth-prebuilt LOCAL_INSTRUMENTATION_FOR := CarDialerAppForTesting LOCAL_MODULE_TAGS := optional # Generate test_config.properties include external/robolectric-shadows/gen_test_config.mk include $(BUILD_STATIC_JAVA_LIBRARY) ############################################################# # Car Dialer runner target to run the previous target. # ############################################################# include $(CLEAR_VARS) LOCAL_MODULE := RunCarDialerRoboTests LOCAL_JAVA_LIBRARIES := \ android.car \ CarDialerRoboTests \ robolectric_android-all-stub \ Robolectric_all-target \ mockito-robolectric-prebuilt \ truth-prebuilt LOCAL_TEST_PACKAGE := CarDialerAppForTesting LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src include external/robolectric-shadows/run_robotests.mk