Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce09f583 authored by Mill Chen's avatar Mill Chen
Browse files

Add robotest modules for Settings

Use ROBOTEST_FILTER to divide RunSettingsRoboTests into several smaller
parts.

Bug: 130511490
Test: make -j RunSettingsRoboTests-applications && make -j
RunSettingsRoboTests-wifi

Change-Id: I16ea575877df7a495de9344971421d221e197b89
parent 76ffb2df
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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
 No newline at end of file
+86 −0
Original line number Diff line number Diff line
# 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
 No newline at end of file