xref: /aosp_15_r20/platform_testing/tests/example/perf/AndroidTest.xml (revision dd0948b35e70be4c0246aabd6c72554a5eb8b22a)
1*dd0948b3SAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*dd0948b3SAndroid Build Coastguard Worker<!-- Copyright (C) 2023 The Android Open Source Project
3*dd0948b3SAndroid Build Coastguard Worker
4*dd0948b3SAndroid Build Coastguard Worker     Licensed under the Apache License, Version 2.0 (the "License");
5*dd0948b3SAndroid Build Coastguard Worker     you may not use this file except in compliance with the License.
6*dd0948b3SAndroid Build Coastguard Worker     You may obtain a copy of the License at
7*dd0948b3SAndroid Build Coastguard Worker
8*dd0948b3SAndroid Build Coastguard Worker          http://www.apache.org/licenses/LICENSE-2.0
9*dd0948b3SAndroid Build Coastguard Worker
10*dd0948b3SAndroid Build Coastguard Worker     Unless required by applicable law or agreed to in writing, software
11*dd0948b3SAndroid Build Coastguard Worker     distributed under the License is distributed on an "AS IS" BASIS,
12*dd0948b3SAndroid Build Coastguard Worker     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*dd0948b3SAndroid Build Coastguard Worker     See the License for the specific language governing permissions and
14*dd0948b3SAndroid Build Coastguard Worker     limitations under the License.
15*dd0948b3SAndroid Build Coastguard Worker-->
16*dd0948b3SAndroid Build Coastguard Worker<configuration description="Runs sample performance test.">
17*dd0948b3SAndroid Build Coastguard Worker    <!-- Declare as a performance test module -->
18*dd0948b3SAndroid Build Coastguard Worker    <option name="config-descriptor:metadata" key="test-type" value="performance" />
19*dd0948b3SAndroid Build Coastguard Worker    <option name="test-tag" value="hello-world-performance-test" />
20*dd0948b3SAndroid Build Coastguard Worker    <test class="com.android.tradefed.testtype.HostTest" >
21*dd0948b3SAndroid Build Coastguard Worker        <option name="class" value="android.test.example.helloworldperformance.HelloWorldPerformanceTest" />
22*dd0948b3SAndroid Build Coastguard Worker    </test>
23*dd0948b3SAndroid Build Coastguard Worker    <!-- Add module-level post processor MetricFilePostProcessor -->
24*dd0948b3SAndroid Build Coastguard Worker    <metric_post_processor class="com.android.tradefed.postprocessor.MetricFilePostProcessor">
25*dd0948b3SAndroid Build Coastguard Worker        <option name="aggregate-similar-tests" value="true" />
26*dd0948b3SAndroid Build Coastguard Worker        <option name="enable-per-test-log" value="false" />
27*dd0948b3SAndroid Build Coastguard Worker    </metric_post_processor>
28*dd0948b3SAndroid Build Coastguard Worker</configuration>
29