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

Commit 1a019534 authored by Andrei Onea's avatar Andrei Onea Committed by Andrei-Valentin Onea
Browse files

Add TEST_MAPPING for gating and logging

The tests included are unit tests for the implementation (under
FrameworksServicesTests), for the corresponding TestRule
(PlatformCompatGating) and CTS tests.

Bug: 137821288
Test: cd frameworks/base/core/java/android/app/compat && atest
Test: cd frameworks/base/services/core/java/com/android/server/compat \
          && atest
Change-Id: I1a652775715f1a9738cc72725303bc78dfa17d03
parent 142a3f86
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
{
    "imports": [
        {
            "path": "frameworks/base/services/core/java/com/android/services/compat"
        }
    ]
}
 No newline at end of file
+21 −0
Original line number Diff line number Diff line
{
    "presubmit": [
        // Unit tests
        {
            "name": "FrameworksServicesTests",
            "options": [
                {
                    "include-filter": "com.android.server.compat"
                }
            ]
        },
        // Tests for the TestRule
        {
            "name": "PlatformCompatGating"
        },
        // CTS tests
        {
            "name": "CtsAppCompatHostTestCases#"
        }
    ]
}
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ android_test {
    name: "PlatformCompatGating",
    // Only compile source java files in this apk.
    srcs: ["src/**/*.java"],
    test_suites: ["device-tests"],
    static_libs: [
        "junit",
        "androidx.test.runner",