blob: c1d429df3a5b64c0bf731adbd6a39e717e8591df [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001host_bmc_test_src = declare_dependency(
Thu Nguyena34a64b2022-03-31 08:56:39 +07002 sources: ['../dbus_to_terminus_effecters.cpp'],
Manojkiran Eda3012b632024-08-22 11:09:01 +05303 include_directories: '../../requester',
4)
Tom Joseph53279882021-04-28 06:29:13 -07005
George Liudf9a6d32020-12-22 16:27:16 +08006test_sources = [
Manojkiran Eda3012b632024-08-22 11:09:01 +05307 '../../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',
George Liudf9a6d32020-12-22 16:27:16 +080014]
15
Thu Nguyena34a64b2022-03-31 08:56:39 +070016tests = ['dbus_to_terminus_effecter_test', 'utils_test', 'custom_dbus_test']
Tom Joseph53279882021-04-28 06:29:13 -070017
18foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +053019 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 )
Tom Joseph53279882021-04-28 06:29:13 -070041endforeach