summaryrefslogtreecommitdiff
path: root/cmds/idmap2/Android.bp
diff options
context:
space:
mode:
authorJulien Desprez <jdesprez@google.com>2021-02-08 16:46:08 -0800
committerJulien Desprez <jdesprez@google.com>2021-02-09 17:11:34 +0000
commit91e0330153c8d67e3eb1ae85a047dff54096ad5b (patch)
tree7449bfdf7fca562a2773e1d484cb0f4fb892a2c0 /cmds/idmap2/Android.bp
parentc50447ad570a1470f9d5bb6d5e7e450531eeb3a2 (diff)
Update idmap2_tests to really work host-side
idmap2_tests is marked host_supported:true but use a AndroidTest.xml config that can only work for device. Deleting the explict config to rely on the auto-gen ones. Adding unit_tests:true to run in presubmit Test: presubmit, atest idmap2_tests --host Bug: 179092189 Change-Id: I0b325abc6ce7fc6c777d070bb0fc0e9e8a7cdedd
Diffstat (limited to 'cmds/idmap2/Android.bp')
-rw-r--r--cmds/idmap2/Android.bp15
1 files changed, 11 insertions, 4 deletions
diff --git a/cmds/idmap2/Android.bp b/cmds/idmap2/Android.bp
index e21a6b288fb3..50f400122fe1 100644
--- a/cmds/idmap2/Android.bp
+++ b/cmds/idmap2/Android.bp
@@ -132,9 +132,6 @@ cc_test {
"tests/XmlParserTests.cpp",
"tests/ZipFileTests.cpp",
],
- required: [
- "idmap2",
- ],
static_libs: ["libgmock"],
target: {
android: {
@@ -163,9 +160,19 @@ cc_test {
shared_libs: [
"libz",
],
+ data: [
+ ":libz",
+ ":idmap2",
+ ],
},
},
- data: ["tests/data/**/*.apk"],
+ data: [
+ "tests/data/**/*.apk",
+ ],
+ compile_multilib: "first",
+ test_options: {
+ unit_test: true,
+ },
}
cc_binary {