diff options
| author | 2021-02-09 22:49:18 +0000 | |
|---|---|---|
| committer | 2021-02-09 22:49:18 +0000 | |
| commit | e4c25a7ad0432cb788f4e43a2a929032c9dc049d (patch) | |
| tree | a73fe883bd88a24a670a85d6c24fdad1cfdfb9c4 | |
| parent | 01f4b0a861b583d52e084e81f3fdf2ab1144b5ce (diff) | |
| parent | be39416ffea55f6058a02437ea13e9c0aab4db30 (diff) | |
Merge "Update idmap2_tests to really work host-side" am: 8ae2344540 am: ea3212b762 am: be39416ffe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1580909
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I1d62a536e70fd90c4ea68caa4ef4881d89e0f2f2
| -rw-r--r-- | cmds/idmap2/Android.bp | 15 | ||||
| -rw-r--r-- | cmds/idmap2/AndroidTest.xml | 26 |
2 files changed, 11 insertions, 30 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 { diff --git a/cmds/idmap2/AndroidTest.xml b/cmds/idmap2/AndroidTest.xml deleted file mode 100644 index 5147f4e6cb4c..000000000000 --- a/cmds/idmap2/AndroidTest.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2018 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<configuration description="Config for idmap2_tests"> - <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> - <option name="cleanup" value="true" /> - <option name="push" value="idmap2_tests->/data/local/tmp/idmap2_tests" /> - </target_preparer> - <option name="test-suite-tag" value="idmap2_tests" /> - <test class="com.android.tradefed.testtype.GTest" > - <option name="native-test-device-path" value="/data/local/tmp" /> - <option name="module-name" value="idmap2_tests" /> - </test> -</configuration> |