Run `HeapprofdJavaCtsTest` in Mainline Presubmits with the ART Module.
Run `HeapprofdJavaCtsTest` test cases (from module
CtsPerfettoTestCases`) in Mainline Presubmits via Test Mapping against
the ART Module installed on reference platform images (for Android S
and Android T).
(cherry picked from commit 5c7ab751f9e41c98cd156af38fffb124379f414e)
Test: atest --test-mapping external/perfetto:mainline-presubmit
Bug: 268041903
Change-Id: I250d03ef37fa9caf09810476c8ea8631923eb447
Merged-In: I250d03ef37fa9caf09810476c8ea8631923eb447
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 9a0667a..9d84571 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -9,6 +9,16 @@
"name": "libsurfaceflinger_unittest"
}
],
+ "mainline-presubmit": [
+ {
+ "name": "CtsPerfettoTestCases[com.google.android.art.apex]",
+ "options": [
+ {
+ "include-filter": "HeapprofdJavaCtsTest*"
+ }
+ ]
+ }
+ ],
"hwasan-presubmit": [
{
"name": "CtsPerfettoTestCases"
diff --git a/test/cts/AndroidTest.xml b/test/cts/AndroidTest.xml
index 1c5c25b..84e72bc 100644
--- a/test/cts/AndroidTest.xml
+++ b/test/cts/AndroidTest.xml
@@ -20,6 +20,7 @@
<option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
<option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
<option name="test-suite-tag" value="cts" />
+ <option name="config-descriptor:metadata" key="mainline-param" value="com.google.android.art.apex" />
<target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
<option name="cleanup-apks" value="true" />
<option name="test-file-name" value="CtsPerfettoProducerApp.apk" />