1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4  ~ Copyright (C) 2018 The Android Open Source Project
5  ~
6  ~ Licensed under the Apache License, Version 2.0 (the "License");
7  ~ you may not use this file except in compliance with the License.
8  ~ You may obtain a copy of the License at
9  ~
10  ~      http://www.apache.org/licenses/LICENSE-2.0
11  ~
12  ~ Unless required by applicable law or agreed to in writing, software
13  ~ distributed under the License is distributed on an "AS IS" BASIS,
14  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  ~ See the License for the specific language governing permissions and
16  ~ limitations under the License.
17  -->
18
19<configuration description="Config for CTS role test cases">
20
21    <option name="test-suite-tag" value="cts" />
22    <option name="config-descriptor:metadata" key="component" value="permissions" />
23    <option name="config-descriptor:metadata" key="parameter" value="all_foldable_states" />
24    <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
25    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
26    <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
27    <option name="config-descriptor:metadata" key="parameter" value="run_on_sdk_sandbox" />
28    <option name="config-descriptor:metadata" key="mainline-param" value="com.google.android.permission.apex" />
29    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.Sdk30ModuleController" />
30
31    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
32        <option name="cleanup-apks" value="true" />
33        <option name="test-file-name" value="CtsRoleTestCases.apk" />
34    </target_preparer>
35
36    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
37        <option name="run-command" value="mkdir -p /data/local/tmp/cts-role" />
38        <option name="teardown-command" value="rm -rf /data/local/tmp/cts-role"/>
39    </target_preparer>
40    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
41        <option name="cleanup" value="true" />
42        <option name="push" value="CtsRoleTestApp.apk->/data/local/tmp/cts-role/CtsRoleTestApp.apk" />
43        <option name="push" value="CtsRoleTestApp28.apk->/data/local/tmp/cts-role/CtsRoleTestApp28.apk" />
44        <option name="push" value="CtsRoleTestApp33WithoutInCallService.apk->/data/local/tmp/cts-role/CtsRoleTestApp33WithoutInCallService.apk" />
45        <option name="push" value="CtsRoleTestAppForProfile.apk->/data/local/tmp/cts-role/CtsRoleTestAppForProfile.apk" />
46    </target_preparer>
47
48    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
49        <option name="package" value="android.app.role.cts" />
50        <option name="runtime-hint" value="5m" />
51    </test>
52</configuration>
53