diff --git a/fs_mgr/liblp/Android.bp b/fs_mgr/liblp/Android.bp index 2b11da262..4ea60e571 100644 --- a/fs_mgr/liblp/Android.bp +++ b/fs_mgr/liblp/Android.bp @@ -55,13 +55,14 @@ cc_library { export_include_dirs: ["include"], } -cc_test { - name: "liblp_test_static", +cc_defaults { + name: "liblp_test_defaults", defaults: ["fs_mgr_defaults"], cppflags: [ "-Wno-unused-parameter", ], static_libs: [ + "libcutils", "libgmock", "libfs_mgr", "liblp", @@ -74,11 +75,20 @@ cc_test { "test_partition_opener.cpp", "utility_test.cpp", ], - target: { - android: { - static_libs: [ - "libcutils", - ], - }, - }, } + +cc_test { + name: "liblp_test", + defaults: ["liblp_test_defaults"], + test_config: "liblp_test.xml", + test_suites: [ + "device-tests", + "vts-core", + ], +} + +cc_test { + name: "liblp_test_static", + defaults: ["liblp_test_defaults"], +} + diff --git a/fs_mgr/liblp/TEST_MAPPING b/fs_mgr/liblp/TEST_MAPPING new file mode 100644 index 000000000..04bcbda54 --- /dev/null +++ b/fs_mgr/liblp/TEST_MAPPING @@ -0,0 +1,7 @@ +{ + "presubmit": [ + { + "name": "liblp_test" + } + ] +} diff --git a/fs_mgr/liblp/liblp_test.xml b/fs_mgr/liblp/liblp_test.xml new file mode 100644 index 000000000..d9ee12eac --- /dev/null +++ b/fs_mgr/liblp/liblp_test.xml @@ -0,0 +1,27 @@ + + + + + + +