Merge "Add robotest modules for Settings" into qt-dev

am: 0e38f902c5

Change-Id: Iaea9e89f0d9b64c5e88234308d379d09cb170ff2
This commit is contained in:
Mill Chen
2019-04-17 17:25:08 -07:00
committed by android-build-merger
2 changed files with 89 additions and 0 deletions

View File

@@ -109,3 +109,6 @@ LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src \
LOCAL_ROBOTEST_TIMEOUT := 36000
include external/robolectric-shadows/run_robotests.mk
# include separate settings robotest moduldes
include $(LOCAL_PATH)/settings_robotest_modules.mk

View File

@@ -0,0 +1,86 @@
# This is included by Android.mk located in the same folder.
# It sets up all robotest sub-modules for RunSettingsRoboTests,
# where the name of each target is defined based on the package
# name under com.android.settings and order the targets
# alphabetically.
#
# Nameing pattern for the target:
# RunSettingsRoboTests-<package_name>
#
# For example:
# RunSettingsRoboTests-core
#
#
# TODO(b/130745039):decouple dependencies among each module
#############################################################
# Settings runner target to run applications module. #
#############################################################
include $(CLEAR_VARS)
LOCAL_MODULE := RunSettingsRoboTests-applications
ROBOTEST_FILTER := applications
LOCAL_JAVA_LIBRARIES := \
SettingsRoboTests \
robolectric_android-all-stub \
Robolectric_all-target \
mockito-robolectric-prebuilt \
truth-prebuilt
LOCAL_TEST_PACKAGE := SettingsRoboTestStub
LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src \
frameworks/base/packages/SettingsLib/search/src \
LOCAL_ROBOTEST_TIMEOUT := 36000
include external/robolectric-shadows/run_robotests.mk
#############################################################
# Settings runner target to run development module. #
#############################################################
include $(CLEAR_VARS)
LOCAL_MODULE := RunSettingsRoboTests-development
ROBOTEST_FILTER := development
LOCAL_JAVA_LIBRARIES := \
SettingsRoboTests \
robolectric_android-all-stub \
Robolectric_all-target \
mockito-robolectric-prebuilt \
truth-prebuilt
LOCAL_TEST_PACKAGE := SettingsRoboTestStub
LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src \
frameworks/base/packages/SettingsLib/search/src \
LOCAL_ROBOTEST_TIMEOUT := 36000
include external/robolectric-shadows/run_robotests.mk
#############################################################
# Settings runner target to run wifi module. #
#############################################################
include $(CLEAR_VARS)
LOCAL_MODULE := RunSettingsRoboTests-wifi
ROBOTEST_FILTER := wifi
LOCAL_JAVA_LIBRARIES := \
SettingsRoboTests \
robolectric_android-all-stub \
Robolectric_all-target \
mockito-robolectric-prebuilt \
truth-prebuilt
LOCAL_TEST_PACKAGE := SettingsRoboTestStub
LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src \
frameworks/base/packages/SettingsLib/search/src \
LOCAL_ROBOTEST_TIMEOUT := 36000
include external/robolectric-shadows/run_robotests.mk