blob: ab7c9a8b152383002143779e5e368c2e87b117d5 [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',
Archana Kakanidb65c3b2025-02-03 05:27:28 -060011 '../dbus/chassis.cpp',
Manojkiran Eda3012b632024-08-22 11:09:01 +053012 '../dbus/cpu_core.cpp',
13 '../dbus/pcie_device.cpp',
14 '../dbus/pcie_slot.cpp',
George Liudf9a6d32020-12-22 16:27:16 +080015]
16
Thu Nguyena34a64b2022-03-31 08:56:39 +070017tests = ['dbus_to_terminus_effecter_test', 'utils_test', 'custom_dbus_test']
Tom Joseph53279882021-04-28 06:29:13 -070018
19foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +053020 test(
21 t,
22 executable(
23 t.underscorify(),
24 t + '.cpp',
25 test_sources,
26 implicit_include_directories: false,
27 dependencies: [
28 gtest,
29 gmock,
30 host_bmc_test_src,
31 libpldm_dep,
32 libpldmutils,
33 nlohmann_json_dep,
34 phosphor_dbus_interfaces,
35 phosphor_logging_dep,
36 sdbusplus,
37 sdeventplus,
38 ],
39 ),
40 workdir: meson.current_source_dir(),
41 )
Tom Joseph53279882021-04-28 06:29:13 -070042endforeach