blob: a532422a38d3758fd7c06674b00db1ab5c7f79d4 [file] [log] [blame]
Arthur Eubanks1ea7ed02017-09-15 09:28:51 -07001<?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="Runs BackgroundDexOptService Integration Tests">
17 <!--DeviceSetup should go before TimeSetter because it stops automatic update of time-->
18 <target_preparer
19 class="com.android.tradefed.targetprep.DeviceSetup">
20 <option name="auto-update-time" value="OFF"/>
21 <option name="auto-update-timezone" value="OFF"/>
22 <option name="set-property" key="pm.dexopt.downgrade_after_inactive_days" value="2"/>
23 <option name="set-property" key="pm.dexopt.disable_bg_dexopt" value="true"/>
24 <option name="set-property" key="pm.dexopt.inactive" value="verify"/>
25 <option name="set-property" key="pm.dexopt.bg-dexopt" value="speed"/>
26 <option name="restore-settings" value="true"/>
27 <option name="restore-properties" value="true"/>
28 </target_preparer>
29
30 <!--Test app needs to be installed when we change its settings below-->
31 <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
32 <option name="test-file-name" value="BackgroundDexOptServiceIntegrationTests.apk"/>
33 <option name="cleanup-apks" value="true"/>
34 </target_preparer>
35
36 <target_preparer class="com.android.tradefed.targetprep.SetPackagesRecentlyUsed">
37 <option name="package-recently-used-time" value="0d"/>
38 <option name="package-recently-used-name" value="com.android.frameworks.bgdexopttest"/>
39 </target_preparer>
40
41 <target_preparer class="com.android.tradefed.targetprep.RestartSystemServerTargetPreparer"/>
42
43 <target_preparer class="com.android.tradefed.targetprep.DeviceStorageFiller">
44 <!--32GB-->
45 <!--necessary because a package cannot create a file larger than 100GB-->
46 <option name="free-bytes" value="34359738368"/>
47 </target_preparer>
48
49 <option name="test-suite-tag" value="apct"/>
50 <option name="test-tag" value="BackgroundDexOptServiceIntegrationTests"/>
51 <test class="com.android.tradefed.testtype.AndroidJUnitTest">
52 <option name="package" value="com.android.frameworks.bgdexopttest"/>
Brett Chabot502ec7a2019-03-01 14:43:20 -080053 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner"/>
Arthur Eubanks1ea7ed02017-09-15 09:28:51 -070054 </test>
55</configuration>