1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 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<configuration description="Runs art_standalone_runtime_tests."> 17 <option name="config-descriptor:metadata" key="mainline-param" value="com.google.android.art.apex" /> 18 <option name="config-descriptor:metadata" key="mainline-param" value="com.android.art.apex" /> 19 20 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> 21 <option name="cleanup" value="true" /> 22 <option name="push" value="art_standalone_runtime_tests->/data/local/tmp/art_standalone_runtime_tests/art_standalone_runtime_tests" /> 23 <option name="append-bitness" value="true" /> 24 </target_preparer> 25 26 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> 27 <option name="cleanup" value="true" /> 28 <option name="push" value="art-gtest-jars-AllFields.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-AllFields.jar" /> 29 <option name="push" value="art-gtest-jars-ErroneousA.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ErroneousA.jar" /> 30 <option name="push" value="art-gtest-jars-ErroneousB.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ErroneousB.jar" /> 31 <option name="push" value="art-gtest-jars-ErroneousInit.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ErroneousInit.jar" /> 32 <option name="push" value="art-gtest-jars-Extension1.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-Extension1.jar" /> 33 <option name="push" value="art-gtest-jars-Extension2.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-Extension2.jar" /> 34 <option name="push" value="art-gtest-jars-ForClassLoaderA.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ForClassLoaderA.jar" /> 35 <option name="push" value="art-gtest-jars-ForClassLoaderB.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ForClassLoaderB.jar" /> 36 <option name="push" value="art-gtest-jars-ForClassLoaderC.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ForClassLoaderC.jar" /> 37 <option name="push" value="art-gtest-jars-ForClassLoaderD.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ForClassLoaderD.jar" /> 38 <option name="push" value="art-gtest-jars-HiddenApiSignatures.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-HiddenApiSignatures.jar" /> 39 <option name="push" value="art-gtest-jars-IMTA.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-IMTA.jar" /> 40 <option name="push" value="art-gtest-jars-IMTB.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-IMTB.jar" /> 41 <option name="push" value="art-gtest-jars-Instrumentation.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-Instrumentation.jar" /> 42 <option name="push" value="art-gtest-jars-Interfaces.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-Interfaces.jar" /> 43 <option name="push" value="art-gtest-jars-LinkageTest.dex->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-LinkageTest.dex" /> 44 <option name="push" value="art-gtest-jars-Main.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-Main.jar" /> 45 <option name="push" value="art-gtest-jars-MainStripped.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-MainStripped.jar" /> 46 <option name="push" value="art-gtest-jars-MainUncompressedAligned.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-MainUncompressedAligned.jar" /> 47 <option name="push" value="art-gtest-jars-MethodTypes.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-MethodTypes.jar" /> 48 <option name="push" value="art-gtest-jars-MultiDex.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-MultiDex.jar" /> 49 <option name="push" value="art-gtest-jars-MultiDexModifiedSecondary.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-MultiDexModifiedSecondary.jar" /> 50 <option name="push" value="art-gtest-jars-MultiDexUncompressedAligned.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-MultiDexUncompressedAligned.jar" /> 51 <option name="push" value="art-gtest-jars-MyClass.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-MyClass.jar" /> 52 <option name="push" value="art-gtest-jars-MyClassNatives.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-MyClassNatives.jar" /> 53 <option name="push" value="art-gtest-jars-Nested.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-Nested.jar" /> 54 <option name="push" value="art-gtest-jars-NonStaticLeafMethods.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-NonStaticLeafMethods.jar" /> 55 <option name="push" value="art-gtest-jars-Packages.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-Packages.jar" /> 56 <option name="push" value="art-gtest-jars-ProfileTestMultiDex.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ProfileTestMultiDex.jar" /> 57 <option name="push" value="art-gtest-jars-ProtoCompare.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ProtoCompare.jar" /> 58 <option name="push" value="art-gtest-jars-ProtoCompare2.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-ProtoCompare2.jar" /> 59 <option name="push" value="art-gtest-jars-StaticLeafMethods.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-StaticLeafMethods.jar" /> 60 <option name="push" value="art-gtest-jars-Statics.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-Statics.jar" /> 61 <option name="push" value="art-gtest-jars-StaticsFromCode.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-StaticsFromCode.jar" /> 62 <option name="push" value="art-gtest-jars-Transaction.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-Transaction.jar" /> 63 <option name="push" value="art-gtest-jars-VerifierDeps.dex->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-VerifierDeps.dex" /> 64 <option name="push" value="art-gtest-jars-VerifierDepsMulti.dex->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-VerifierDepsMulti.dex" /> 65 <option name="push" value="art-gtest-jars-XandY.jar->/data/local/tmp/art_standalone_runtime_tests/art-gtest-jars-XandY.jar" /> 66 </target_preparer> 67 68 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> 69 <option name="cleanup" value="true" /> 70 <option name="append-bitness" value="true" /> 71 <option name="push-file" key="generate-boot-image" value="/data/local/tmp/art_standalone_runtime_tests/generate-boot-image" /> 72 </target_preparer> 73 74 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 75 <option name="throw-if-cmd-fail" value="true" /> 76 <option name="run-command" value="mkdir -p /data/local/tmp/art_standalone_runtime_tests/art_boot_images" /> 77 <option name="run-command" value="/data/local/tmp/art_standalone_runtime_tests/generate-boot-image --output-dir=/data/local/tmp/art_standalone_runtime_tests/art_boot_images" /> 78 <option name="teardown-command" value="rm -rf /data/local/tmp/art_standalone_runtime_tests/art_boot_images" /> 79 </target_preparer> 80 81 <test class="com.android.tradefed.testtype.GTest" > 82 <option name="native-test-device-path" value="/data/local/tmp/art_standalone_runtime_tests" /> 83 <option name="module-name" value="art_standalone_runtime_tests" /> 84 85 <!-- The following tests from `art_standalone_runtime_tests` are currently failing 86 (observed on `aosp_cf_x86_64_phone-userdebug`). 87 88 TODO(b/204649079): Investigate these failures and re-enable these tests. --> 89 <option name="exclude-filter" value="HiddenApiTest.DexDomain_SystemDir" /> 90 <option name="exclude-filter" value="HiddenApiTest.DexDomain_SystemDir_MultiDex" /> 91 <option name="exclude-filter" value="HiddenApiTest.DexDomain_SystemFrameworkDir" /> 92 <option name="exclude-filter" value="HiddenApiTest.DexDomain_SystemFrameworkDir_MultiDex" /> 93 <option name="exclude-filter" value="HiddenApiTest.DexDomain_SystemSystemExtDir" /> 94 <option name="exclude-filter" value="HiddenApiTest.DexDomain_SystemSystemExtDir_MultiDex" /> 95 <option name="exclude-filter" value="HiddenApiTest.DexDomain_SystemSystemExtFrameworkDir" /> 96 <option name="exclude-filter" value="HiddenApiTest.DexDomain_SystemSystemExtFrameworkDir_MultiDex" /> 97 <option name="exclude-filter" value="JniInternalTest.CallVarArgMethodBadPrimitive" /> 98 <option name="exclude-filter" value="OatFileAssistantBaseTest.SystemFrameworkDir" /> 99 <option name="exclude-filter" value="StubTest.Fields16" /> 100 <option name="exclude-filter" value="StubTest.Fields32" /> 101 <option name="exclude-filter" value="StubTest.Fields64" /> 102 <option name="exclude-filter" value="StubTest.Fields8" /> 103 <option name="exclude-filter" value="StubTest.FieldsObj" /> 104 <option name="exclude-filter" value="SubtypeCheckInfoTest.IllegalValues" /> 105 106 <!-- The following tests from `art_standalone_runtime_tests` are currently failing when 107 run as 32-bit on a 64-bit device, because they try to execute other system (64-bit) 108 processes but `LD_LIBRARY_PATH` is set to a directory of 32-bit libraries which make 109 them fail to dynamically link to the expected (64-bit) libraries. 110 111 TODO(b/204649079): Investigate these failures and re-enable these tests. --> 112 <option name="exclude-filter" value="*ExecUtilsTest.EnvSnapshotDeletionsAreNotVisible*" /> 113 <option name="exclude-filter" value="*ExecUtilsTest.ExecNoTimeout*" /> 114 <option name="exclude-filter" value="*ExecUtilsTest.ExecStatFailed*" /> 115 <option name="exclude-filter" value="*ExecUtilsTest.ExecSuccess*" /> 116 <option name="exclude-filter" value="*ExecUtilsTest.ExecTimeout*" /> 117 </test> 118 119 <!-- When this test is run in a Mainline context (e.g. with `mts-tradefed`), only enable it if 120 one of the Mainline modules below is present on the device used for testing. --> 121 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController"> 122 <!-- ART Mainline Module (internal version). --> 123 <option name="mainline-module-package-name" value="com.google.android.art" /> 124 <!-- ART Mainline Module (external (AOSP) version). --> 125 <option name="mainline-module-package-name" value="com.android.art" /> 126 </object> 127 128 <!-- Only run tests if the device under test is SDK version 31 (Android 12) or above. --> 129 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.Sdk31ModuleController" /> 130</configuration> 131