blob: 03cc1504b3fcbb749e63b96b2095a2bc541b18b6 [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">
17 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.ApkInstaller">
18 <option name="cleanup-apks" value="true" />
19 <option name="test-file-name" value="CtsAdminApp.apk" />
20 <option name="test-file-name" value="CtsAdminTestCases.apk" />
21 </target_preparer>
22
23 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
Fyodor Kupolov39123d52015-12-04 11:56:42 -080024 <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver" />
25 <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver2" />
Stuart Scott7384c1d2015-09-29 12:00:22 -070026 </target_preparer>
27
28 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
29 <option name="package" value="android.admin.cts" />
Aaron Holden3f1c14f2016-04-27 16:04:35 -070030 <option name="runtime-hint" value="20s" />
Stuart Scott7384c1d2015-09-29 12:00:22 -070031 </test>
32
33 <!-- Instrument the app to clear the device admins so the apk can be uninstalled -->
34 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.ApkInstrumentationPreparer">
35 <option name="apk" value="CtsAdminApp.apk" />
36 <option name="package" value="android.admin.app" />
Stuart Scott7384c1d2015-09-29 12:00:22 -070037 <option name="when" value="after" />
38 </target_preparer>
Aaron Holden3f1c14f2016-04-27 16:04:35 -070039</configuration>