Jiakai Zhang | d539f86 | 2022-02-08 14:56:05 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2022 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 | <!-- Note: This test config file for {MODULE} is generated from a template. --> |
| 17 | <configuration description="Runs {MODULE}."> |
| 18 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> |
| 19 | <option name="cleanup" value="true" /> |
| 20 | <option name="push" value="{MODULE}->/data/local/tmp/{MODULE}/{MODULE}" /> |
| 21 | <option name="append-bitness" value="true" /> |
| 22 | </target_preparer> |
| 23 | |
| 24 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> |
| 25 | <option name="cleanup" value="true" /> |
| 26 | <option name="append-bitness" value="true" /> |
| 27 | <option name="push-file" key="generate-boot-image" value="/data/local/tmp/{MODULE}/generate-boot-image" /> |
| 28 | </target_preparer> |
| 29 | |
| 30 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 31 | <option name="throw-if-cmd-fail" value="true" /> |
| 32 | <option name="run-command" value="mkdir -p /data/local/tmp/{MODULE}/art_boot_images" /> |
| 33 | <option name="run-command" value="/data/local/tmp/{MODULE}/generate-boot-image --output-dir=/data/local/tmp/{MODULE}/art_boot_images" /> |
| 34 | <option name="teardown-command" value="rm -rf /data/local/tmp/{MODULE}/art_boot_images" /> |
| 35 | </target_preparer> |
| 36 | |
| 37 | <test class="com.android.tradefed.testtype.GTest" > |
| 38 | <option name="native-test-device-path" value="/data/local/tmp/{MODULE}" /> |
| 39 | <option name="module-name" value="{MODULE}" /> |
| 40 | <option name="ld-library-path-32" value="/apex/com.android.art/lib" /> |
| 41 | <option name="ld-library-path-64" value="/apex/com.android.art/lib64" /> |
| 42 | </test> |
| 43 | |
| 44 | <!-- When this test is run in a Mainline context (e.g. with `mts-tradefed`), only enable it if |
| 45 | one of the Mainline modules below is present on the device used for testing. --> |
| 46 | <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController"> |
| 47 | <!-- ART Mainline Module (internal version). --> |
| 48 | <option name="mainline-module-package-name" value="com.google.android.art" /> |
| 49 | <!-- ART Mainline Module (external (AOSP) version). --> |
| 50 | <option name="mainline-module-package-name" value="com.android.art" /> |
| 51 | </object> |
| 52 | |
| 53 | <!-- Only run tests if the device under test is SDK version 31 (Android 12) or above. --> |
| 54 | <object type="module_controller" class="com.android.tradefed.testtype.suite.module.Sdk31ModuleController" /> |
| 55 | </configuration> |