Extract vibrator cts tests from CtsOsTestCases

Trigger the vibrator cts tests from services and core TEST_MAPPING files.

Fix: 290746931
Test: atest CtsVibratorTestCases
Change-Id: I1e955321f03c90ad3b5f3c4a2401093139cf4726
This commit is contained in:
Ahmad Khalil
2023-07-24 19:36:58 +00:00
parent 90a49af20a
commit de88a9812a
4 changed files with 49 additions and 17 deletions

View File

@@ -26,6 +26,19 @@
{"exclude-annotation": "org.junit.Ignore"}
]
},
{
"file_patterns": [
"[^/]*(Vibrator|Vibration)[^/]*\\.java",
"vibrator/.*"
],
"name": "CtsVibratorTestCases",
"options": [
{"exclude-annotation": "android.platform.test.annotations.LargeTest"},
{"exclude-annotation": "android.platform.test.annotations.FlakyTest"},
{"exclude-annotation": "androidx.test.filters.FlakyTest"},
{"exclude-annotation": "org.junit.Ignore"}
]
},
{
"file_patterns": ["Bugreport[^/]*\\.java"],
"name": "BugreportManagerTestCases",

View File

@@ -1,21 +1,10 @@
{
"presubmit": [
"imports": [
{
"name": "FrameworksVibratorServicesTests",
"options": [
{"exclude-annotation": "android.platform.test.annotations.LargeTest"},
{"exclude-annotation": "android.platform.test.annotations.FlakyTest"},
{"exclude-annotation": "androidx.test.filters.FlakyTest"},
{"exclude-annotation": "org.junit.Ignore"}
]
}
],
"postsubmit": [
"path": "frameworks/base/services/tests/vibrator"
},
{
"name": "FrameworksVibratorServicesTests",
"options": [
{"exclude-annotation": "org.junit.Ignore"}
]
"path": "cts/tests/vibrator"
}
]
}

View File

@@ -0,0 +1,16 @@
{
"presubmit": [
{
"file_patterns": [
"[^/]*(vibrator)[^/]*\\.[^/]*"
],
"name": "CtsVibratorTestCases",
"options": [
{"exclude-annotation": "android.platform.test.annotations.LargeTest"},
{"exclude-annotation": "android.platform.test.annotations.FlakyTest"},
{"exclude-annotation": "androidx.test.filters.FlakyTest"},
{"exclude-annotation": "org.junit.Ignore"}
]
}
]
}

View File

@@ -1,7 +1,21 @@
{
"imports": [
"presubmit": [
{
"path": "frameworks/base/services/core/java/com/android/server/vibrator"
"name": "FrameworksVibratorServicesTests",
"options": [
{"exclude-annotation": "android.platform.test.annotations.LargeTest"},
{"exclude-annotation": "android.platform.test.annotations.FlakyTest"},
{"exclude-annotation": "androidx.test.filters.FlakyTest"},
{"exclude-annotation": "org.junit.Ignore"}
]
}
],
"postsubmit": [
{
"name": "FrameworksVibratorServicesTests",
"options": [
{"exclude-annotation": "org.junit.Ignore"}
]
}
]
}