blob: f99f8bf2e991844b092dbfd3291491d126e36f85 [file] [log] [blame]
Stuart Scott7384c1d2015-09-29 12:00:22 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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 the CTS device admin tests">
jdesprez503a3db2017-12-16 04:19:31 -080017 <option name="test-suite-tag" value="cts" />
Guang Zhuc40b6fd2017-06-02 17:17:14 -070018 <option name="config-descriptor:metadata" key="component" value="framework" />
Eric Sandness0e745b12019-01-31 10:39:39 +000019 <!-- Instant apps can never be device admin / profile owner / device owner so positive tests
20 here are not applicable -->
21 <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
22 <!-- Not testing features backed by native code, so only need to run against one ABI -->
23 <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
24
jovanakfcd176c2019-01-16 13:14:34 -080025 <target_preparer class="com.android.tradefed.targetprep.SwitchUserTargetPreparer">
26 <option name="user-type" value="system" />
27 </target_preparer>
28
jdesprezfd6d41d2017-04-11 15:43:44 -070029 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
Stuart Scott7384c1d2015-09-29 12:00:22 -070030 <option name="cleanup-apks" value="true" />
Suprabh Shukla017121a2017-02-17 15:29:35 -080031 <option name="install-arg" value="-t" />
Stuart Scott7384c1d2015-09-29 12:00:22 -070032 <option name="test-file-name" value="CtsAdminApp.apk" />
33 <option name="test-file-name" value="CtsAdminTestCases.apk" />
34 </target_preparer>
35
36 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
Fyodor Kupolov39123d52015-12-04 11:56:42 -080037 <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver" />
38 <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver2" />
arangelovd3483072018-02-23 17:43:22 +000039 <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver3" />
Suprabh Shukla017121a2017-02-17 15:29:35 -080040 <option name="run-command" value="dpm set-profile-owner --user cur android.admin.app/.CtsDeviceAdminProfileOwner" />
41 <option name="teardown-command" value="dpm remove-active-admin --user cur android.admin.app/.CtsDeviceAdminProfileOwner" />
42 <option name="teardown-command" value="dpm remove-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver" />
43 <option name="teardown-command" value="dpm remove-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver2" />
arangelovd3483072018-02-23 17:43:22 +000044 <option name="teardown-command" value="dpm remove-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver3" />
Stuart Scott7384c1d2015-09-29 12:00:22 -070045 </target_preparer>
46
47 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
48 <option name="package" value="android.admin.cts" />
Julien Desprez34a8fa52016-11-02 12:11:38 +000049 <option name="runtime-hint" value="17m" />
Stuart Scott7384c1d2015-09-29 12:00:22 -070050 </test>
51
Aaron Holden3f1c14f2016-04-27 16:04:35 -070052</configuration>