From 480b5b733fcd79ae6790ce8f33884bd86a325e47 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Tue, 17 Nov 2020 17:35:25 +0800 Subject: [PATCH] Promote Context related tests to presubmit Test: atest -p frameworks/base/core/java/android/app:presubmit Test: atest -p frameworks/base/core/java/android/content:presubmit Test: atest -p frameworks/base/core/java/android/view:presubmit Bug: 170927371 Change-Id: I5c26418546cf4fcc710d5d0c2f6e5d10b2c03f84 --- core/java/android/app/TEST_MAPPING | 48 ++++++++++++++++++++++++ core/java/android/content/TEST_MAPPING | 52 ++++++++++++++++++++++++++ core/java/android/view/TEST_MAPPING | 18 +++++++++ 3 files changed, 118 insertions(+) create mode 100644 core/java/android/content/TEST_MAPPING diff --git a/core/java/android/app/TEST_MAPPING b/core/java/android/app/TEST_MAPPING index b0307d1eb9396..14a27f911922f 100644 --- a/core/java/android/app/TEST_MAPPING +++ b/core/java/android/app/TEST_MAPPING @@ -92,6 +92,54 @@ } ], "file_patterns": ["(/|^)Activity.java"] + }, + { + "name": "CtsContentTestCases", + "options": [ + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + }, + { + "exclude-annotation": "org.junit.Ignore" + }, + { + "include-filter": "android.content.wm.cts" + } + ], + "file_patterns": ["(/|^)ContextImpl.java"] + }, + { + "name": "CtsOsTestCases", + "options": [ + { + "include-annotation": "android.platform.test.annotations.Presubmit" + }, + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + }, + { + "exclude-annotation": "org.junit.Ignore" + }, + { + "include-filter": "android.os.cts.StrictModeTest" + } + ], + "file_patterns": ["(/|^)ContextImpl.java"] + }, + { + "name": "FrameworksCoreTests", + "options": [ + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + }, + { + "exclude-annotation": "org.junit.Ignore" + }, + { + "include-filter": "android.content.ContextTest" + } + ], + "file_patterns": ["(/|^)ContextImpl.java"] } ], "postsubmit": [ diff --git a/core/java/android/content/TEST_MAPPING b/core/java/android/content/TEST_MAPPING new file mode 100644 index 0000000000000..a2880dfdfd175 --- /dev/null +++ b/core/java/android/content/TEST_MAPPING @@ -0,0 +1,52 @@ +{ + "presubmit": [ + { + "name": "CtsContentTestCases", + "options": [ + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + }, + { + "exclude-annotation": "org.junit.Ignore" + }, + { + "include-filter": "android.content.wm.cts" + } + ], + "file_patterns": ["(/|^)Context.java", "(/|^)ContextWrapper.java"] + }, + { + "name": "CtsOsTestCases", + "options": [ + { + "include-annotation": "android.platform.test.annotations.Presubmit" + }, + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + }, + { + "exclude-annotation": "org.junit.Ignore" + }, + { + "include-filter": "android.os.cts.StrictModeTest" + } + ], + "file_patterns": ["(/|^)Context.java", "(/|^)ContextWrapper.java"] + }, + { + "name": "FrameworksCoreTests", + "options": [ + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + }, + { + "exclude-annotation": "org.junit.Ignore" + }, + { + "include-filter": "android.content.ContextTest" + } + ], + "file_patterns": ["(/|^)Context.java", "(/|^)ContextWrapper.java"] + } + ] +} \ No newline at end of file diff --git a/core/java/android/view/TEST_MAPPING b/core/java/android/view/TEST_MAPPING index 4ea4310b25a49..c8b746f2248f3 100644 --- a/core/java/android/view/TEST_MAPPING +++ b/core/java/android/view/TEST_MAPPING @@ -2,6 +2,24 @@ "presubmit": [ { "name": "CtsAccelerationTestCases" + }, + { + "name": "CtsOsTestCases", + "options": [ + { + "include-annotation": "android.platform.test.annotations.Presubmit" + }, + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + }, + { + "exclude-annotation": "org.junit.Ignore" + }, + { + "include-filter": "android.os.cts.StrictModeTest" + } + ], + "file_patterns": ["(/|^)ViewConfiguration.java", "(/|^)GestureDetector.java"] } ], "imports": [