1############################################################# 2# Tv Robolectric test target. # 3############################################################# 4LOCAL_PATH := $(call my-dir) 5include $(CLEAR_VARS) 6 7LOCAL_MODULE := TvRoboTests 8LOCAL_MODULE_CLASS := JAVA_LIBRARIES 9 10BASE_DIR = src/com/android/tv 11EXCLUDE_FILES := \ 12 $(BASE_DIR)/data/epg/EpgFetcherImplTest.java \ 13 $(BASE_DIR)/guide/ProgramItemViewTest.java \ 14 15LOCAL_SRC_FILES := $(call all-java-files-under, src) 16LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES)) 17 18LOCAL_JAVA_LIBRARIES := \ 19 Robolectric_all-target \ 20 mockito-robolectric-prebuilt \ 21 robolectric_android-all-stub \ 22 23LOCAL_STATIC_JAVA_LIBRARIES := \ 24 tv-lib-dagger \ 25 tv-lib-truth \ 26 27LOCAL_STATIC_ANDROID_LIBRARIES := \ 28 androidx.leanback_leanback-nodeps \ 29 androidx.test.core \ 30 androidx.test.ext.truth \ 31 tv-lib-dagger-android \ 32 tv-test-common \ 33 tv-test-common-robo \ 34 35LOCAL_ANNOTATION_PROCESSORS := \ 36 tv-lib-dagger-android-processor \ 37 tv-lib-dagger-compiler \ 38 39LOCAL_ANNOTATION_PROCESSOR_CLASSES := \ 40 dagger.internal.codegen.ComponentProcessor,dagger.android.processor.AndroidProcessor 41 42LOCAL_INSTRUMENTATION_FOR := LiveTv 43 44LOCAL_MODULE_TAGS := optional 45 46include $(BUILD_STATIC_JAVA_LIBRARY) 47 48############################################################# 49# Tv runner target to run the previous target. # 50############################################################# 51include $(CLEAR_VARS) 52LOCAL_MODULE := RunTvRoboTests 53 54BASE_DIR = com/android/tv 55EXCLUDE_FILES := \ 56 $(BASE_DIR)/data/epg/EpgFetcherImplTest.java \ 57 $(BASE_DIR)/guide/ProgramItemViewTest.java \ 58 59LOCAL_ROBOTEST_FILES := $(call find-files-in-subdirs,$(LOCAL_PATH)/src,*Test.java,.) 60LOCAL_ROBOTEST_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_ROBOTEST_FILES)) 61 62LOCAL_JAVA_LIBRARIES := \ 63 Robolectric_all-target \ 64 TvRoboTests \ 65 mockito-robolectric-prebuilt \ 66 robolectric_android-all-stub \ 67 tv-test-common \ 68 tv-test-common-robo \ 69 70LOCAL_TEST_PACKAGE := LiveTv 71 72LOCAL_ROBOTEST_TIMEOUT := 36000 73 74include external/robolectric-shadows/run_robotests.mk 75