1<?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 Policy host tests">
17    <option name="test-suite-tag" value="cts" />
18    <option name="config-descriptor:metadata" key="component" value="framework" />
19    <!-- 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    <!-- Device admin/owner requires being run in system user -->
25    <option name="config-descriptor:metadata" key="parameter" value="not_secondary_user" />
26
27    <!-- Push the list of public APIs to device -->
28    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
29        <option name="run-command" value="mkdir -p /data/local/tmp/device-policy-test" />
30        <option name="teardown-command" value="rm -rf /data/local/tmp/device-policy-test" />
31    </target_preparer>
32    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
33        <!-- The source file current.api is prepared by //cts/tests/signature/api/Android.mk -->
34        <!-- The target path should be consistent with CurrentApiHelper#CURRENT_API_FILE -->
35        <option name="push" value="current.api->/data/local/tmp/device-policy-test/current.api" />
36    </target_preparer>
37
38    <test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
39        <option name="jar" value="CtsDevicePolicyManagerTestCases.jar" />
40        <option name="runtime-hint" value="31m41s" />
41    </test>
42</configuration>
43