1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<configuration description="Runs the staged install API  tests">
17    <option name="test-suite-tag" value="cts" />
18    <option name="config-descriptor:metadata" key="component" value="framework" />
19    <!-- Instant apps can't have INSTALL_PACKAGES permission. -->
20    <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
21    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
22
23    <!-- Module reboots the device making it inelligible for running in secondary users. -->
24    <!-- TODO: Revisit secondary user eligibility once b/137885984 is resolved. -->
25    <option name="config-descriptor:metadata" key="parameter" value="not_secondary_user" />
26
27    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
28        <option name="cleanup-apks" value="true" />
29        <option name="test-file-name" value="StagedInstallTest.apk" />
30    </target_preparer>
31    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
32        <option name="run-command" value="pm uninstall com.android.cts.install.lib.testapp.A" />
33        <option name="run-command" value="pm uninstall com.android.cts.install.lib.testapp.B" />
34        <option name="teardown-command" value="pm uninstall com.android.cts.install.lib.testapp.A" />
35        <option name="teardown-command" value="pm uninstall com.android.cts.install.lib.testapp.B" />
36    </target_preparer>
37    <test class="com.android.tradefed.testtype.HostTest" >
38        <option name="class" value="com.android.tests.stagedinstall.host.StagedInstallTest" />
39        <option name="class" value="com.android.tests.stagedinstall.host.ApexShimValidationTest" />
40    </test>
41</configuration>
42