Add missing dependencies
There are multiple places where the dependencies are
explicitly missing & its working as of today because
of the way the code was organised.
The intent behind this commit is add the missing dependencies
explicitly. This commit fixes :
1. common tests depends on header files in common folder, but
it is not added as a dependency, fixing this by adding libpldmutils
as the dependency.
2. fw-update tests depends on header files in common folder as well,
but it is not added as a dependency , fixing this by adding libpldmutils
as the dependency.
3. requester test code includes header files in the pldmd folder, but
that is not added as a dependency as well, fixing this by adding
include_directories and making it a dependency.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I102ea5096dd9edfc876fd60df7628fc061e085f2
diff --git a/common/test/meson.build b/common/test/meson.build
index ad5700f..b3380b4 100644
--- a/common/test/meson.build
+++ b/common/test/meson.build
@@ -17,6 +17,7 @@
libpldm_dep,
nlohmann_json,
phosphor_dbus_interfaces,
+ libpldmutils,
sdbusplus]),
workdir: meson.current_source_dir())
endforeach
diff --git a/fw-update/test/meson.build b/fw-update/test/meson.build
index 61d95dd..b85ed08 100644
--- a/fw-update/test/meson.build
+++ b/fw-update/test/meson.build
@@ -24,6 +24,7 @@
gmock,
gtest,
libpldm_dep,
+ libpldmutils,
nlohmann_json,
phosphor_dbus_interfaces,
sdbusplus,
diff --git a/requester/test/meson.build b/requester/test/meson.build
index 74caa3e..c5c0168 100644
--- a/requester/test/meson.build
+++ b/requester/test/meson.build
@@ -1,7 +1,9 @@
+requester_inc = include_directories('../../')
test_src = declare_dependency(
sources: [
'../../pldmd/dbus_impl_requester.cpp',
- '../../pldmd/instance_id.cpp'])
+ '../../pldmd/instance_id.cpp'],
+ include_directories:requester_inc)
tests = [
'handler_test',
diff --git a/test/meson.build b/test/meson.build
index aee5f7b..04bbfdc 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,6 +1,8 @@
+pldmd_inc = include_directories('../')
test_src = declare_dependency(
sources: [
- '../pldmd/instance_id.cpp'])
+ '../pldmd/instance_id.cpp'],
+ include_directories:pldmd_inc)
tests = [
'pldmd_instanceid_test',