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

Commit 71257248 authored by Ronald Braunstein's avatar Ronald Braunstein
Browse files

Create a new test_module_config entries for TEST_MAPPING options

As part of adding `test_module_config`: go/test-module-config,
we are migrating options from TEST_MAPPING files to Android.bp files.
Several cls have already been submitted, but this is a larger change to
add the test_module_config entries in bulk to reduce churn on the
Android.bp and TEST_MAPPING files.

This topic covers the two of the repos with the most changes needed
(frameworks/base and cts).
The first cls will simply create the entries in the Android.bp file
This is a noop operation until they get used via TEST_MAPPING files.

The process is:
  1) Generate new test_module_configs with reasonable names based on
     options in TEST_MAPPING files
  2) After 1) gets submitted, match the options from Android.bp back to
     TEST_MAPPING files and update those TEST_MAPPING files with the
     name from the Andriod.bp.

To simplify a little bit, we are also removing adding
"exclude-annotation" androidx.test.filters.FlakyTest and org.junit.Ignore
from the options set in Android.bp since we recently added Flaky
exclusion to all CI test_mapping runs.  And junit always ignore @Ignore,
no reason to ask it to.

Test: ci
Change-Id: I3097093d1677a0a5a30c8f4aed7fc96c22c0e84d
Flag: NONE # test rename only
parent 34eacbbf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -37,3 +37,10 @@ android_test {
    certificate: "platform",
    test_suites: ["device-tests"],
}

test_module_config {
    name: "FrameworksCoreGameManagerTests_android_app",
    base: "FrameworksCoreGameManagerTests",
    test_suites: ["device-tests"],
    include_filters: ["android.app"],
}
+7 −0
Original line number Diff line number Diff line
@@ -37,3 +37,10 @@ android_test {
    certificate: "platform",
    test_suites: ["device-tests"],
}

test_module_config {
    name: "HdmiCecTests_hardware_hdmi",
    base: "HdmiCecTests",
    test_suites: ["device-tests"],
    include_filters: ["android.hardware.hdmi"],
}
+10 −0
Original line number Diff line number Diff line
@@ -62,3 +62,13 @@ android_test {

    certificate: "platform",
}

test_module_config {
    name: "FrameworksMockingCoreTests_os_bundlerecyclingtest",
    base: "FrameworksMockingCoreTests",
    test_suites: [
        "automotive-tests",
        "device-tests",
    ],
    include_filters: ["android.os.BundleRecyclingTest"],
}
+14 −0
Original line number Diff line number Diff line
@@ -23,3 +23,17 @@ android_test {
    certificate: "platform",
    test_suites: ["device-tests"],
}

test_module_config {
    name: "FrameworksTimeCoreTests_android_app",
    base: "FrameworksTimeCoreTests",
    test_suites: ["device-tests"],
    include_filters: ["android.app."],
}

test_module_config {
    name: "FrameworksTimeCoreTests_android_service",
    base: "FrameworksTimeCoreTests",
    test_suites: ["device-tests"],
    include_filters: ["android.service."],
}
+7 −0
Original line number Diff line number Diff line
@@ -86,3 +86,10 @@ android_test {
        "com.android.wm.shell.tests",
    ],
}

test_module_config {
    name: "WMShellUnitTests_shell_back",
    base: "WMShellUnitTests",
    test_suites: ["device-tests"],
    include_filters: ["com.android.wm.shell.back"],
}
Loading