blob: 9f762ed60d9c0732203cfb12a759b85667898603 [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001host_bmc_test_src = declare_dependency(
Manojkiran Eda3012b632024-08-22 11:09:01 +05302 sources: ['../dbus_to_host_effecters.cpp'],
3 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
Manojkiran Eda3012b632024-08-22 11:09:01 +053016tests = ['dbus_to_host_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