Merge "Add vibrator service test mapping to source folder" into main
This commit is contained in:
21
services/core/java/com/android/server/vibrator/TEST_MAPPING
Normal file
21
services/core/java/com/android/server/vibrator/TEST_MAPPING
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"presubmit": [
|
||||
{
|
||||
"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"}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -31,8 +31,7 @@
|
||||
<!-- Required to set always-on vibrations -->
|
||||
<uses-permission android:name="android.permission.VIBRATE_ALWAYS_ON" />
|
||||
|
||||
<application android:debuggable="true"
|
||||
android:testOnly="true">
|
||||
<application android:debuggable="true">
|
||||
<uses-library android:name="android.test.mock" android:required="true" />
|
||||
<uses-library android:name="android.test.runner" />
|
||||
</application>
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2023 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<configuration description="Runs Frameworks Vibrator Services Tests.">
|
||||
<option name="test-suite-tag" value="apct" />
|
||||
<option name="test-suite-tag" value="apct-instrumentation" />
|
||||
|
||||
<target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
|
||||
<option name="cleanup-apks" value="true" />
|
||||
<option name="install-arg" value="-t" />
|
||||
<option name="test-file-name" value="FrameworksVibratorServicesTests.apk" />
|
||||
</target_preparer>
|
||||
|
||||
<option name="test-tag" value="FrameworksVibratorServicesTests" />
|
||||
|
||||
<test class="com.android.tradefed.testtype.AndroidJUnitTest">
|
||||
<option name="package" value="com.android.framework.services.tests.vibrator" />
|
||||
<option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
|
||||
<option name="hidden-api-checks" value="false" />
|
||||
</test>
|
||||
</configuration>
|
||||
@@ -1,21 +1,7 @@
|
||||
{
|
||||
"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": [
|
||||
{
|
||||
"name": "FrameworksVibratorServicesTests",
|
||||
"options": [
|
||||
{"exclude-annotation": "org.junit.Ignore"}
|
||||
]
|
||||
"path": "frameworks/base/services/core/java/com/android/server/vibrator"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user