From 253d4f3fe7414bdd030d57a1a0407b14d2f6d63d Mon Sep 17 00:00:00 2001 From: Chen Zhu Date: Tue, 19 May 2020 17:13:09 -0700 Subject: [PATCH] Add test config to statsd_test and apply mainline module test controller to it so that the tests will only be run when statsd apex is found on device. Bug: 154845935 Test: m mts && mts-tradefed run mts-statsd Change-Id: Ieaa8049cb66b7e75daba4f22477e850367821b64 --- cmds/statsd/Android.bp | 6 +++++- cmds/statsd/statsd_test.xml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 cmds/statsd/statsd_test.xml diff --git a/cmds/statsd/Android.bp b/cmds/statsd/Android.bp index f30ed17c392f9..3dbe413950245 100644 --- a/cmds/statsd/Android.bp +++ b/cmds/statsd/Android.bp @@ -292,6 +292,7 @@ cc_test { name: "statsd_test", defaults: ["statsd_defaults"], test_suites: ["device-tests", "mts"], + test_config: "statsd_test.xml", //TODO(b/153588990): Remove when the build system properly separates //32bit and 64bit architectures. @@ -299,7 +300,10 @@ cc_test { multilib: { lib64: { suffix: "64", - } + }, + lib32: { + suffix: "32", + }, }, cflags: [ diff --git a/cmds/statsd/statsd_test.xml b/cmds/statsd/statsd_test.xml new file mode 100644 index 0000000000000..8f9bb1cb6b2ab --- /dev/null +++ b/cmds/statsd/statsd_test.xml @@ -0,0 +1,37 @@ + + + +