1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 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 Backup host test cases">
17    <option name="test-suite-tag" value="cts" />
18    <option name="config-descriptor:metadata" key="component" value="backup" />
19    <!-- Backup of instant apps is not supported. -->
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    <!-- Run module in system user because backup tests are not fully supported in secondary user.
23         For devices running on secondary user, such as automotive devices, these tests will fail.
24         When backup tests are fully functional for secondary users:
25           -change not_secondary_user to secondary_user.
26           -remove SwitchUserTargetPreparer
27    -->
28    <option name="config-descriptor:metadata" key="parameter" value="not_secondary_user" />
29    <target_preparer class="com.android.tradefed.targetprep.SwitchUserTargetPreparer">
30        <option name="user-type" value="system" />
31    </target_preparer>
32    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
33        <option name="cleanup-apks" value="true" />
34        <option name="test-file-name" value="CtsFullbackupApp.apk" />
35        <option name="test-file-name" value="CtsIncludeExcludeApp.apk" />
36    </target_preparer>
37    <target_preparer class="android.cts.backup.BackupPreparer">
38        <option name="enable-backup-if-needed" value="true" />
39        <option name="select-local-transport" value="true" />
40    </target_preparer>
41    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
42        <option name="run-command" value="cmd thermalservice override-status 0" />
43        <option name="teardown-command" value="cmd thermalservice reset" />
44    </target_preparer>
45    <test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
46        <option name="jar" value="CtsBackupHostTestCases.jar" />
47    </test>
48</configuration>
49