From f8d9765e0a111053bd4f6645632dc47a4cde2648 Mon Sep 17 00:00:00 2001 From: Julien Desprez Date: Thu, 21 Jan 2021 18:35:45 -0800 Subject: [PATCH] Attempt to make libavb test working in CI Test: presubmit Bug: 178215452 Change-Id: I82d847e05a2fddf3037a8f97793e24a593230ba7 --- fs_mgr/libfs_avb/Android.bp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/fs_mgr/libfs_avb/Android.bp b/fs_mgr/libfs_avb/Android.bp index 8fb969701..2f1ca70b8 100644 --- a/fs_mgr/libfs_avb/Android.bp +++ b/fs_mgr/libfs_avb/Android.bp @@ -91,12 +91,19 @@ cc_test_host { name: "libfs_avb_test", defaults: ["libfs_avb_host_test_defaults"], test_suites: ["general-tests"], + test_options: { + unit_test: true, + }, static_libs: [ "libfs_avb_test_util", ], shared_libs: [ "libcrypto", ], + data: [ + ":avbtool", + ":fec", + ], srcs: [ "tests/basic_test.cpp", "tests/fs_avb_test.cpp", @@ -108,9 +115,17 @@ cc_test_host { name: "libfs_avb_internal_test", defaults: ["libfs_avb_host_test_defaults"], test_suites: ["general-tests"], + test_options: { + unit_test: true, + }, static_libs: [ "libfs_avb_test_util", ], + compile_multilib: "first", + data: [ + ":avbtool", + ":fec", + ], srcs: [ "avb_util.cpp", "util.cpp",