xref: /openbmc/pldm/host-bmc/test/meson.build (revision b40f4f8f)
1host_bmc_test_src = declare_dependency(
2          sources: [ '../dbus_to_host_effecters.cpp' ],
3          include_directories: '../../requester')
4
5test_sources = [
6  '../../common/utils.cpp',
7  '../utils.cpp',
8  '../dbus/custom_dbus.cpp',
9  '../dbus/cable.cpp',
10  '../dbus/cpu_core.cpp',
11  '../dbus/pcie_device.cpp',
12  '../dbus/pcie_slot.cpp',
13]
14
15tests = [
16  'dbus_to_host_effecter_test',
17  'utils_test',
18  'custom_dbus_test',
19]
20
21foreach t : tests
22  test(t, executable(t.underscorify(), t + '.cpp',
23                     test_sources,
24                     implicit_include_directories: false,
25                     dependencies: [
26                         gtest,
27                         gmock,
28                         host_bmc_test_src,
29                         libpldm_dep,
30                         libpldmutils,
31                         nlohmann_json_dep,
32                         phosphor_dbus_interfaces,
33                         phosphor_logging_dep,
34                         sdbusplus,
35                         sdeventplus]),
36       workdir: meson.current_source_dir())
37endforeach
38