Add test mapping and setup tests for VCN
This change adds the necessary files for the VCN tests to be run using atest. Bug: 163431877 Test: atest FrameworksVcnTests Change-Id: Ib9a91189bae38170a9fb37d420e262b023534b4b
This commit is contained in:
parent
4924f3acd0
commit
0d1e88e465
4 changed files with 90 additions and 0 deletions
27
Vcn/tests/unit/Android.bp
Normal file
27
Vcn/tests/unit/Android.bp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
//########################################################################
|
||||
// Build FrameworksVcnTests package
|
||||
//########################################################################
|
||||
|
||||
android_test {
|
||||
name: "FrameworksVcnTests",
|
||||
srcs: [
|
||||
"java/**/*.java",
|
||||
"java/**/*.kt",
|
||||
],
|
||||
platform_apis: true,
|
||||
test_suites: ["device-tests"],
|
||||
certificate: "platform",
|
||||
static_libs: [
|
||||
"androidx.test.rules",
|
||||
"frameworks-base-testutils",
|
||||
"framework-protos",
|
||||
"mockito-target-minus-junit4",
|
||||
"platform-test-annotations",
|
||||
"services.core",
|
||||
],
|
||||
libs: [
|
||||
"android.test.runner",
|
||||
"android.test.base",
|
||||
"android.test.mock",
|
||||
],
|
||||
}
|
||||
28
Vcn/tests/unit/AndroidManifest.xml
Normal file
28
Vcn/tests/unit/AndroidManifest.xml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2020 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.
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.frameworks.tests.vcn">
|
||||
|
||||
<application>
|
||||
<uses-library android:name="android.test.runner" />
|
||||
</application>
|
||||
|
||||
<instrumentation
|
||||
android:name="androidx.test.runner.AndroidJUnitRunner"
|
||||
android:targetPackage="com.android.frameworks.tests.vcn"
|
||||
android:label="Frameworks VCN Tests" />
|
||||
</manifest>
|
||||
28
Vcn/tests/unit/AndroidTest.xml
Normal file
28
Vcn/tests/unit/AndroidTest.xml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2020 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 VCN Tests.">
|
||||
<target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
|
||||
<option name="test-file-name" value="FrameworksVcnTests.apk" />
|
||||
</target_preparer>
|
||||
|
||||
<option name="test-suite-tag" value="apct" />
|
||||
<option name="test-tag" value="FrameworksVcnTests" />
|
||||
<test class="com.android.tradefed.testtype.AndroidJUnitTest" >
|
||||
<option name="package" value="com.android.frameworks.tests.vcn" />
|
||||
<option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
|
||||
<option name="hidden-api-checks" value="false"/>
|
||||
</test>
|
||||
</configuration>
|
||||
7
Vcn/tests/unit/TEST_MAPPING
Normal file
7
Vcn/tests/unit/TEST_MAPPING
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"presubmit": [
|
||||
{
|
||||
"name": "FrameworksVcnTests"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue