summaryrefslogtreecommitdiff
path: root/dexoptanalyzer/art_standalone_dexoptanalyzer_tests.xml
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2021-07-04 14:21:07 +0100
committer Roland Levillain <rpl@google.com> 2021-07-08 16:56:35 +0000
commit6a2e6893290eac83f59dac4ec5bc10abf985ae10 (patch)
treeee7f59774da19363bb867df9c0e9dc4f35f01fa2 /dexoptanalyzer/art_standalone_dexoptanalyzer_tests.xml
parent592bceac0c030794175ae41d9c7e2ca092739d2e (diff)
Add support for standalone ART gtests to MTS.
This change: - adds standalone ART gtests to test suite `mts-art`; - adds `MainlineTestModuleController` support to standalone ART gtests. This in order to have these tests run in a Mainline context only when the ART Module (either `com.google.android.art` or `com.android.art`) is installed on the test device. Test: m mts && mts-tradefed run commandAndExit mts-art Test: m mts && mts-tradefed run commandAndExit mts-art-shard-00 Bug: 167385698 Change-Id: I97d9c00b7c10debff8c63e4ae75f90da02be271c
Diffstat (limited to 'dexoptanalyzer/art_standalone_dexoptanalyzer_tests.xml')
-rw-r--r--dexoptanalyzer/art_standalone_dexoptanalyzer_tests.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/dexoptanalyzer/art_standalone_dexoptanalyzer_tests.xml b/dexoptanalyzer/art_standalone_dexoptanalyzer_tests.xml
index 800dec1684..ae112d49e9 100644
--- a/dexoptanalyzer/art_standalone_dexoptanalyzer_tests.xml
+++ b/dexoptanalyzer/art_standalone_dexoptanalyzer_tests.xml
@@ -41,4 +41,13 @@
<option name="ld-library-path-32" value="/apex/com.android.art/lib" />
<option name="ld-library-path-64" value="/apex/com.android.art/lib64" />
</test>
+
+ <!-- When this test is run in a Mainline context (e.g. with `mts-tradefed`), only enable it if
+ one of the Mainline modules below is present on the device used for testing. -->
+ <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
+ <!-- ART Mainline Module (internal version). -->
+ <option name="mainline-module-package-name" value="com.google.android.art" />
+ <!-- ART Mainline Module (external (AOSP) version). -->
+ <option name="mainline-module-package-name" value="com.android.art" />
+ </object>
</configuration>