xref: /aosp_15_r20/test/cts-root/tests/usage/AndroidTest.xml (revision fc9e02cc466b32ca348fe8172a44255464d9ce4e)
1*fc9e02ccSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*fc9e02ccSAndroid Build Coastguard Worker<!--
3*fc9e02ccSAndroid Build Coastguard Worker  ~ Copyright (C) 2021 The Android Open Source Project
4*fc9e02ccSAndroid Build Coastguard Worker  ~
5*fc9e02ccSAndroid Build Coastguard Worker  ~ Licensed under the Apache License, Version 2.0 (the "License");
6*fc9e02ccSAndroid Build Coastguard Worker  ~ you may not use this file except in compliance with the License.
7*fc9e02ccSAndroid Build Coastguard Worker  ~ You may obtain a copy of the License at
8*fc9e02ccSAndroid Build Coastguard Worker  ~
9*fc9e02ccSAndroid Build Coastguard Worker  ~      http://www.apache.org/licenses/LICENSE-2.0
10*fc9e02ccSAndroid Build Coastguard Worker  ~
11*fc9e02ccSAndroid Build Coastguard Worker  ~ Unless required by applicable law or agreed to in writing, software
12*fc9e02ccSAndroid Build Coastguard Worker  ~ distributed under the License is distributed on an "AS IS" BASIS,
13*fc9e02ccSAndroid Build Coastguard Worker  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*fc9e02ccSAndroid Build Coastguard Worker  ~ See the License for the specific language governing permissions and
15*fc9e02ccSAndroid Build Coastguard Worker  ~ limitations under the License.
16*fc9e02ccSAndroid Build Coastguard Worker  -->
17*fc9e02ccSAndroid Build Coastguard Worker<configuration description="Runs Usage CTS root tests">
18*fc9e02ccSAndroid Build Coastguard Worker    <option name="test-suite-tag" value="apct" />
19*fc9e02ccSAndroid Build Coastguard Worker    <option name="test-suite-tag" value="apct-instrumentation" />
20*fc9e02ccSAndroid Build Coastguard Worker
21*fc9e02ccSAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
22*fc9e02ccSAndroid Build Coastguard Worker
23*fc9e02ccSAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
24*fc9e02ccSAndroid Build Coastguard Worker        <option name="cleanup-apks" value="true"/>
25*fc9e02ccSAndroid Build Coastguard Worker        <option name="test-file-name" value="CtsRootUsageDeviceTestCases.apk"/>
26*fc9e02ccSAndroid Build Coastguard Worker    </target_preparer>
27*fc9e02ccSAndroid Build Coastguard Worker
28*fc9e02ccSAndroid Build Coastguard Worker    <!-- Restart to clear test code from system server -->
29*fc9e02ccSAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.DeviceCleaner">
30*fc9e02ccSAndroid Build Coastguard Worker        <option name="cleanup-action" value="REBOOT" />
31*fc9e02ccSAndroid Build Coastguard Worker    </target_preparer>
32*fc9e02ccSAndroid Build Coastguard Worker
33*fc9e02ccSAndroid Build Coastguard Worker    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
34*fc9e02ccSAndroid Build Coastguard Worker        <option name="package" value="android.usage.cts_root"/>
35*fc9e02ccSAndroid Build Coastguard Worker        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
36*fc9e02ccSAndroid Build Coastguard Worker        <option name="restart" value="false" />
37*fc9e02ccSAndroid Build Coastguard Worker    </test>
38*fc9e02ccSAndroid Build Coastguard Worker</configuration>
39