xref: /aosp_15_r20/cts/hostsidetests/packagemanager/domainverification/device/multiuser/AndroidTest.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 2021 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="Config for CTS domain verification multi user test cases">
17    <option name="test-suite-tag" value="cts" />
18    <option name="config-descriptor:metadata" key="component" value="packagemanager" />
19    <option name="config-descriptor:metadata" key="parameter" value="multi_abi" />
20    <option name="config-descriptor:metadata" key="parameter" value="run_on_work_profile" />
21    <!-- Instant apps can never be device admin / profile owner / device owner so positive tests
22         here are not applicable -->
23    <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
24    <!-- Device admin/owner requires being run in system user -->
25    <option name="config-descriptor:metadata" key="parameter" value="not_secondary_user" />
26    <option name="config-descriptor:metadata" key="parameter" value="no_foldable_states" />
27
28    <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
29        <option name="force-skip-system-props" value="true" />
30        <option name="set-global-setting" key="verifier_engprod" value="1" />
31        <option name="set-global-setting" key="verifier_verify_adb_installs" value="0" />
32        <option name="restore-settings" value="true" />
33    </target_preparer>
34
35    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
36        <option name="cleanup-apks" value="true" />
37        <option name="test-file-name" value="CtsDomainVerificationDeviceMultiUserTestCases.apk" />
38        <option name="install-arg" value="-t" />
39    </target_preparer>
40
41    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
42        <option name="package"
43            value="com.android.cts.packagemanager.verify.domain.device.multiuser" />
44        <option name="exclude-annotation"
45            value="com.android.bedstead.enterprise.annotations.RequireRunOnWorkProfile" />
46        <option name="exclude-annotation"
47            value="com.android.bedstead.multiuser.annotations.RequireRunOnSecondaryUser" />
48    </test>
49</configuration>
50
51