summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Hsieh <victorhsieh@google.com>2019-12-23 16:49:16 -0800
committerVictor Hsieh <victorhsieh@google.com>2020-01-22 14:36:52 -0800
commit419ed1d851bae7dca6f30985278f6982e2d87e12 (patch)
treefe4dd2533c9e1c584159010220ab991d5b54bbb4
parent458fbcba7f9af8d2500e89fd743c42e3b987d2c5 (diff)
Add block_device_writer to pts
Test: treehugger & atest locally on flame Bug: 145573317 Change-Id: I9641a425b46abe775a21f1014f6f236586dd4c12
-rw-r--r--tests/ApkVerityTest/block_device_writer/Android.bp18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/ApkVerityTest/block_device_writer/Android.bp b/tests/ApkVerityTest/block_device_writer/Android.bp
index e7a63e414172..78850c534596 100644
--- a/tests/ApkVerityTest/block_device_writer/Android.bp
+++ b/tests/ApkVerityTest/block_device_writer/Android.bp
@@ -30,7 +30,23 @@ cc_test {
"-g",
],
shared_libs: ["libbase", "libutils"],
+ // For some reasons, cuttlefish (x86) uses x86_64 test suites for testing. Unfortunately, when
+ // the uploader does not pick up the executable from correct output location. The following
+ // workaround allows the test to:
+ // * upload the 32-bit exectuable for both 32 and 64 bits devices to use
+ // * refer to the same executable name in Java
+ // * no need to force the Java test to be archiecture specific.
+ //
+ // See b/145573317 for details.
+ multilib: {
+ lib32: {
+ suffix: "",
+ },
+ lib64: {
+ suffix: "64", // not really used
+ },
+ },
- test_suites: ["general-tests"],
+ test_suites: ["general-tests", "pts"],
gtest: false,
}