xref: /openbmc/pldm/host-bmc/test/meson.build (revision 733b39da)
15327988eSTom Josephhost_bmc_test_src = declare_dependency(
27c1dc7eaSAndrew Jeffery          sources: [ '../dbus_to_host_effecters.cpp' ],
3c0c79481SSampa Misra          include_directories: '../../requester')
45327988eSTom Joseph
5df9a6d34SGeorge Liutest_sources = [
6df9a6d34SGeorge Liu  '../../common/utils.cpp',
7516122e0SKamalkumar Patel  '../utils.cpp',
814107a10SKamalkumar Patel  '../dbus/custom_dbus.cpp',
956da5740SKamalkumar Patel  '../dbus/cpu_core.cpp',
10*733b39daSArchana Kakani  '../dbus/pcie_device.cpp',
11bf1fd27bSArchana Kakani  '../dbus/pcie_slot.cpp',
12df9a6d34SGeorge Liu]
13df9a6d34SGeorge Liu
145327988eSTom Josephtests = [
155327988eSTom Joseph  'dbus_to_host_effecter_test',
16df9a6d34SGeorge Liu  'utils_test',
17682ee18cSGeorge Liu  'custom_dbus_test',
185327988eSTom Joseph]
195327988eSTom Joseph
205327988eSTom Josephforeach t : tests
215327988eSTom Joseph  test(t, executable(t.underscorify(), t + '.cpp',
22df9a6d34SGeorge Liu                     test_sources,
235327988eSTom Joseph                     implicit_include_directories: false,
245327988eSTom Joseph                     dependencies: [
255327988eSTom Joseph                         gtest,
265327988eSTom Joseph                         gmock,
275327988eSTom Joseph                         host_bmc_test_src,
285327988eSTom Joseph                         libpldm_dep,
295327988eSTom Joseph                         libpldmutils,
30cf772846SPatrick Williams                         nlohmann_json_dep,
315327988eSTom Joseph                         phosphor_dbus_interfaces,
3249cfb138SRiya Dixit                         phosphor_logging_dep,
33c0c79481SSampa Misra                         sdbusplus,
34c0c79481SSampa Misra                         sdeventplus]),
355327988eSTom Joseph       workdir: meson.current_source_dir())
365327988eSTom Josephendforeach
37