Add libincident_test to MTS

+ remove GtsLibIncidentTests (the native GTS tests) from presubmit

Test: m libincident_test
Test: atest libincident_test
Test: m mts && mts-tradefed run mts -m libincident_test
Bug: 157142853
Change-Id: I5c6ea2edfbd29165ec65108c4a71a56698c76a27
This commit is contained in:
Ruchir Rastogi
2020-06-09 17:22:53 -07:00
parent ca4709a9a5
commit dd5d287a73
3 changed files with 16 additions and 5 deletions

View File

@@ -95,7 +95,17 @@ cc_test {
name: "libincident_test",
test_config: "AndroidTest.xml",
defaults: ["libincidentpriv_defaults"],
test_suites: ["device-tests"],
test_suites: ["device-tests", "mts"],
compile_multilib: "both",
multilib: {
lib64: {
suffix: "64",
},
lib32: {
suffix: "32",
},
},
require_root: true,
include_dirs: [
"frameworks/base/libs/incident/include",

View File

@@ -16,13 +16,17 @@
<configuration description="Config for libincident_test">
<option name="test-suite-tag" value="device-tests" />
<option name="config-descriptor:metadata" key="component" value="misc" />
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
<target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
<option name="cleanup" value="true" />
<option name="push" value="libincident_test->/data/local/tmp/libincident_test" />
<option name="append-bitness" value="true" />
</target_preparer>
<test class="com.android.tradefed.testtype.GTest" >
<option name="native-test-device-path" value="/data/local/tmp" />
<option name="module-name" value="libincident_test" />
</test>
<object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
<option name="mainline-module-package-name" value="com.google.android.os.statsd" />
</object>
</configuration>

View File

@@ -2,9 +2,6 @@
"presubmit": [
{
"name": "libincident_test"
},
{
"name": "GtsLibIncidentTests"
}
]
}