summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dieter Hsu <dieterhsu@google.com> 2020-06-18 23:11:31 +0800
committer Gavin Corkery <gavincorkery@google.com> 2020-09-29 18:54:32 +0100
commit67654483860a4623baf92dcaa9a53afc7d84a8eb (patch)
tree9a6320f5898e971bd80f799b34724feb7c3584c1
parent31f9d09ba9835eafd7db45c2b75a711a31e21f98 (diff)
Enable bug report tests in pre/postsubmit
Bug: 155604488 Test: atest --test-mapping --dry-run \ services/core/java/com/android/server/os:presubmit Test: atest --test-mapping --dry-run core/java/android/os:presubmit Change-Id: I054d05d4fa8ff02f1c404d0883c382a2d5911f88 Merged-In: I054d05d4fa8ff02f1c404d0883c382a2d5911f88 (cherry picked from commit 848113e595fa862201277eec2d2085d231b7070e)
-rw-r--r--core/java/android/os/TEST_MAPPING40
-rw-r--r--packages/Shell/TEST_MAPPING31
-rw-r--r--services/core/java/com/android/server/os/TEST_MAPPING36
3 files changed, 107 insertions, 0 deletions
diff --git a/core/java/android/os/TEST_MAPPING b/core/java/android/os/TEST_MAPPING
new file mode 100644
index 000000000000..f4645caee511
--- /dev/null
+++ b/core/java/android/os/TEST_MAPPING
@@ -0,0 +1,40 @@
+{
+ "presubmit": [
+ // TODO(159590499) add BugreportManagerTestCases
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "CtsBugreportTestCases",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.LargeTest"
+ }
+ ]
+ },
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "ShellTests",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.LargeTest"
+ },
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ }
+ ],
+ "postsubmit": [
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "BugreportManagerTestCases"
+ },
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "CtsBugreportTestCases"
+ },
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "ShellTests"
+ }
+ ]
+}
diff --git a/packages/Shell/TEST_MAPPING b/packages/Shell/TEST_MAPPING
new file mode 100644
index 000000000000..a149b5cda3ea
--- /dev/null
+++ b/packages/Shell/TEST_MAPPING
@@ -0,0 +1,31 @@
+{
+ "presubmit": [
+ {
+ "name": "CtsBugreportTestCases",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.LargeTest"
+ }
+ ]
+ },
+ {
+ "name": "ShellTests",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.LargeTest"
+ },
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ }
+ ],
+ "postsubmit": [
+ {
+ "name": "CtsBugreportTestCases"
+ },
+ {
+ "name": "ShellTests"
+ }
+ ]
+}
diff --git a/services/core/java/com/android/server/os/TEST_MAPPING b/services/core/java/com/android/server/os/TEST_MAPPING
index 502f1e852e08..a837fb4184ba 100644
--- a/services/core/java/com/android/server/os/TEST_MAPPING
+++ b/services/core/java/com/android/server/os/TEST_MAPPING
@@ -1,7 +1,43 @@
{
"presubmit": [
+ // TODO(159590499) add BugreportManagerTestCases
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "CtsBugreportTestCases",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.LargeTest"
+ }
+ ]
+ },
{
"name": "CtsUsbTests"
+ },
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "ShellTests",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.LargeTest"
+ },
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ }
+ ],
+ "postsubmit": [
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "BugreportManagerTestCases"
+ },
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "CtsBugreportTestCases"
+ },
+ {
+ "file_patterns": ["Bugreport[^/]*\\.java"],
+ "name": "ShellTests"
}
]
}