xref: /openbmc/pldm/host-bmc/test/meson.build (revision b40f4f8f)
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',
9*b40f4f8fSArchana Kakani  '../dbus/cable.cpp',
1056da5740SKamalkumar Patel  '../dbus/cpu_core.cpp',
11733b39daSArchana Kakani  '../dbus/pcie_device.cpp',
12bf1fd27bSArchana Kakani  '../dbus/pcie_slot.cpp',
13df9a6d34SGeorge Liu]
14df9a6d34SGeorge Liu
155327988eSTom Josephtests = [
165327988eSTom Joseph  'dbus_to_host_effecter_test',
17df9a6d34SGeorge Liu  'utils_test',
18682ee18cSGeorge Liu  'custom_dbus_test',
195327988eSTom Joseph]
205327988eSTom Joseph
215327988eSTom Josephforeach t : tests
225327988eSTom Joseph  test(t, executable(t.underscorify(), t + '.cpp',
23df9a6d34SGeorge Liu                     test_sources,
245327988eSTom Joseph                     implicit_include_directories: false,
255327988eSTom Joseph                     dependencies: [
265327988eSTom Joseph                         gtest,
275327988eSTom Joseph                         gmock,
285327988eSTom Joseph                         host_bmc_test_src,
295327988eSTom Joseph                         libpldm_dep,
305327988eSTom Joseph                         libpldmutils,
31cf772846SPatrick Williams                         nlohmann_json_dep,
325327988eSTom Joseph                         phosphor_dbus_interfaces,
3349cfb138SRiya Dixit                         phosphor_logging_dep,
34c0c79481SSampa Misra                         sdbusplus,
35c0c79481SSampa Misra                         sdeventplus]),
365327988eSTom Joseph       workdir: meson.current_source_dir())
375327988eSTom Josephendforeach
38