xref: /openbmc/pldm/host-bmc/test/meson.build (revision a13bf143)
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  '../custom_dbus.cpp',
8]
9
10tests = [
11  'dbus_to_host_effecter_test',
12  'utils_test',
13  'custom_dbus_test',
14]
15
16foreach t : tests
17  test(t, executable(t.underscorify(), t + '.cpp',
18                     test_sources,
19                     implicit_include_directories: false,
20                     dependencies: [
21                         gtest,
22                         gmock,
23                         host_bmc_test_src,
24                         libpldm_dep,
25                         libpldmutils,
26                         nlohmann_json_dep,
27                         phosphor_dbus_interfaces,
28                         phosphor_logging_dep,
29                         sdbusplus,
30                         sdeventplus]),
31       workdir: meson.current_source_dir())
32endforeach
33