blob: 240b4410249494c91c1f4836ba5f39639b0f0d34 [file] [log] [blame]
David Srbeckyee257162020-02-28 15:50:13 +00001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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-->
David Srbeckyf61e0612020-08-14 16:13:35 +010016<configuration description="ART gtests for target (using apex installation)">
David Srbecky262925e2020-05-27 13:17:39 +010017 <option name="test-suite-tag" value="art" />
David Srbeckyf61e0612020-08-14 16:13:35 +010018 <option name="test-suite-tag" value="art-target-gtest-install-apex" />
Roland Levillainda946fc2021-01-05 23:43:49 +000019
David Srbeckyee257162020-02-28 15:50:13 +000020 <target_preparer class="com.android.tradefed.targetprep.InstallApexModuleTargetPreparer" >
21 <option name="test-file-name" value="com.android.art.testing.apex" />
22 </target_preparer>
Roland Levillainda946fc2021-01-05 23:43:49 +000023
David Srbeckyee257162020-02-28 15:50:13 +000024 <test class="com.android.tradefed.testtype.GTest" >
David Srbeckyf61e0612020-08-14 16:13:35 +010025 <!-- TODO(b/147821328): These tests do not work since they need to write to /system -->
David Srbeckyee257162020-02-28 15:50:13 +000026 <option name="exclude-filter" value="HiddenApiTest.DexDomain_System*:OatFileAssistantTest.SystemFrameworkDir" />
27 <option name="native-test-timeout" value="600000" /> <!-- 10 min -->
28 <option name="native-test-device-path" value="/apex/com.android.art/bin/art" />
29 </test>
Roland Levillainda946fc2021-01-05 23:43:49 +000030
Roland Levillainde1449e2021-02-24 10:35:44 +000031 <!-- When this test is run in a Mainline context (e.g. with `mts-tradefed`), only enable it if
Roland Levillaind64dc6d2021-04-19 15:05:14 +010032 one of the Mainline modules below is present on the device used for testing. -->
Roland Levillainda946fc2021-01-05 23:43:49 +000033 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
Roland Levillainde1449e2021-02-24 10:35:44 +000034 <!-- ART Mainline Module (internal version). -->
Roland Levillainda946fc2021-01-05 23:43:49 +000035 <option name="mainline-module-package-name" value="com.google.android.art" />
Roland Levillainde1449e2021-02-24 10:35:44 +000036 <!-- ART Mainline Module (external (AOSP) version). -->
37 <option name="mainline-module-package-name" value="com.android.art" />
Roland Levillainda946fc2021-01-05 23:43:49 +000038 </object>
Roland Levillain0d1c54d2021-08-06 19:20:57 +010039
Roland Levillain8884d3d2022-01-04 16:12:00 +000040 <!-- Only run tests if the device under test is SDK version 31 (Android 12) or above. -->
Roland Levillain0d1c54d2021-08-06 19:20:57 +010041 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.Sdk31ModuleController" />
David Srbeckyee257162020-02-28 15:50:13 +000042</configuration>