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