1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  ~ Copyright (C) 2023 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<configuration description="Boot Time Test">
19    <option name="config-descriptor:metadata" key="test-type" value="performance" />
20
21    <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer" />
22    <!-- Needed to set perfetto trace property before fastboot commands -->
23    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer" />
24    <target_preparer class="com.android.tradefed.targetprep.FastbootCommandPreparer" />
25    <!-- Needed multiple run command target preparer for running commands before/after install. -->
26    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer" />
27    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup" />
28    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer" />
29    <target_preparer class="com.android.tradefed.targetprep.InstrumentationPreparer" >
30        <option name="disable" value="true" />
31    </target_preparer>
32
33    <test class="com.android.tradefed.testtype.HostTest" >
34        <option name="class" value="android.boottime.BootTimeTest" />
35    </test>
36
37    <metrics_collector class="com.android.tradefed.device.metric.AtraceCollector"/>
38    <metrics_collector class="com.android.tradefed.device.metric.PerfettoPullerMetricCollector">
39        <option name="collect-on-run-ended-only" value="false" />
40    </metrics_collector>
41
42    <metric_post_processor class="com.android.tradefed.postprocessor.PerfettoGenericPostProcessor" />
43    <metric_post_processor class="com.android.tradefed.postprocessor.MetricFilePostProcessor">
44        <option name="aggregate-similar-tests" value="true" />
45    </metric_post_processor>
46    <metric_post_processor class="android.boottime.postprocessor.LogcatPostProcessor">
47        <option name="file-regex" value=".*Successive_reboots_logcat.*"/>
48    </metric_post_processor>
49    <metric_post_processor class="android.boottime.postprocessor.DmesgPostProcessor">
50        <option name="file-regex" value=".*Successive_reboots_dmesg.*"/>
51    </metric_post_processor>
52</configuration>
53