Add libdm_test to presubmit
Also add libdm_test to the TEST_MAPPING's presubmit of fs_mgr to run the
test on TH whenever changes are applied to the fs_mgr contents.
Test: TH
Bug: none
Change-Id: Icc6adeeacaefbcfeb494f37fc776eb5a886a5183
Signed-off-by: Alessio Balsini <balsini@google.com>
diff --git a/fs_mgr/TEST_MAPPING b/fs_mgr/TEST_MAPPING
new file mode 100644
index 0000000..a947b4e
--- /dev/null
+++ b/fs_mgr/TEST_MAPPING
@@ -0,0 +1,7 @@
+{
+ "presubmit": [
+ {
+ "name": "libdm_test"
+ }
+ ]
+}
diff --git a/fs_mgr/libdm/Android.bp b/fs_mgr/libdm/Android.bp
index 8a924d5..1c3427f 100644
--- a/fs_mgr/libdm/Android.bp
+++ b/fs_mgr/libdm/Android.bp
@@ -54,29 +54,32 @@
}
cc_defaults {
- name: "libdm_defaults",
+ name: "libdm_test_defaults",
defaults: ["fs_mgr_defaults"],
static_libs: [
"libdm",
+ ],
+ shared_libs: [
"libbase",
"libext2_uuid",
"libfs_mgr",
"liblog",
],
srcs: [":libdm_test_srcs"],
+ auto_gen_config: true,
+ require_root: true,
}
cc_test {
name: "libdm_test",
- defaults: ["libdm_defaults"],
+ defaults: ["libdm_test_defaults"],
+ test_suites: ["device-tests"],
}
cc_test {
name: "vts_libdm_test",
- defaults: ["libdm_defaults"],
+ defaults: ["libdm_test_defaults"],
test_suites: ["vts-core"],
- auto_gen_config: true,
- require_root: true,
test_min_api_level: 29,
}