xref: /aosp_15_r20/libcore/benchmarks/AndroidTest.xml (revision 89a6322812dc8573315e60046e7959c50dad91d4)
1*89a63228SAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*89a63228SAndroid Build Coastguard Worker<!--
3*89a63228SAndroid Build Coastguard Worker  ~ Copyright (C) 2021 The Android Open Source Project
4*89a63228SAndroid Build Coastguard Worker  ~
5*89a63228SAndroid Build Coastguard Worker  ~ Licensed under the Apache License, Version 2.0 (the "License");
6*89a63228SAndroid Build Coastguard Worker  ~ you may not use this file except in compliance with the License.
7*89a63228SAndroid Build Coastguard Worker  ~ You may obtain a copy of the License at
8*89a63228SAndroid Build Coastguard Worker  ~
9*89a63228SAndroid Build Coastguard Worker  ~      http://www.apache.org/licenses/LICENSE-2.0
10*89a63228SAndroid Build Coastguard Worker  ~
11*89a63228SAndroid Build Coastguard Worker  ~ Unless required by applicable law or agreed to in writing, software
12*89a63228SAndroid Build Coastguard Worker  ~ distributed under the License is distributed on an "AS IS" BASIS,
13*89a63228SAndroid Build Coastguard Worker  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*89a63228SAndroid Build Coastguard Worker  ~ See the License for the specific language governing permissions and
15*89a63228SAndroid Build Coastguard Worker  ~ limitations under the License.
16*89a63228SAndroid Build Coastguard Worker  -->
17*89a63228SAndroid Build Coastguard Worker<configuration description="Runs libcore benchmark tests">
18*89a63228SAndroid Build Coastguard Worker    <!--Test app needs to be installed when we change its settings below-->
19*89a63228SAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
20*89a63228SAndroid Build Coastguard Worker        <option name="test-file-name" value="LibcoreBenchmarkTests.apk"/>
21*89a63228SAndroid Build Coastguard Worker        <option name="cleanup-apks" value="true"/>
22*89a63228SAndroid Build Coastguard Worker    </target_preparer>
23*89a63228SAndroid Build Coastguard Worker
24*89a63228SAndroid Build Coastguard Worker    <option name="test-suite-tag" value="apct"/>
25*89a63228SAndroid Build Coastguard Worker    <option name="test-tag" value="LibcoreBenchmarkTests"/>
26*89a63228SAndroid Build Coastguard Worker    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
27*89a63228SAndroid Build Coastguard Worker        <option name="package" value="libcore.benchmark"/>
28*89a63228SAndroid Build Coastguard Worker        <option name="runner" value="androidx.benchmark.junit4.AndroidBenchmarkRunner"/>
29*89a63228SAndroid Build Coastguard Worker        <option name="hidden-api-checks" value="false"/>
30*89a63228SAndroid Build Coastguard Worker        <option name="instrumentation-arg" key="androidx.benchmark.suppressErrors"
31*89a63228SAndroid Build Coastguard Worker                value="EMULATOR,LOW-BATTERY,UNLOCKED"/>
32*89a63228SAndroid Build Coastguard Worker    </test>
33*89a63228SAndroid Build Coastguard Worker</configuration>