Merge "Add shared_fd_test.cpp to TEST_MAPPING."
diff --git a/common/libs/fs/Android.bp b/common/libs/fs/Android.bp
index 59075da..b1d6ff1 100644
--- a/common/libs/fs/Android.bp
+++ b/common/libs/fs/Android.bp
@@ -61,3 +61,22 @@
stl: "libc++_static",
defaults: ["cuttlefish_guest_product_only"],
}
+
+cc_test_host {
+ name: "libcuttlefish_fs_tests",
+ srcs: [
+ "shared_fd_test.cpp",
+ ],
+ header_libs: ["cuttlefish_glog"],
+ shared_libs: [
+ "cuttlefish_auto_resources",
+ "libcuttlefish_fs",
+ "libbase",
+ ],
+ static_libs: [
+ "libgmock",
+ "libgtest_host",
+ ],
+ defaults: ["cuttlefish_host_only"],
+ test_suites: ["general-tests"],
+}
diff --git a/common/libs/fs/TEST_MAPPING b/common/libs/fs/TEST_MAPPING
new file mode 100644
index 0000000..162fcf6
--- /dev/null
+++ b/common/libs/fs/TEST_MAPPING
@@ -0,0 +1,8 @@
+{
+ "presubmit": [
+ {
+ "name": "libcuttlefish_fs_tests",
+ "host": true
+ }
+ ]
+}