blob: 5f7ba7b38121b03feefa5102006711e759f98bda [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',
Archana Kakani1634a6e2025-02-04 01:12:29 -060010 '../dbus/asset.cpp',
Archana Kakanif9355372025-02-04 03:13:24 -060011 '../dbus/availability.cpp',
Manojkiran Eda3012b632024-08-22 11:09:01 +053012 '../dbus/cable.cpp',
Archana Kakanidb65c3b2025-02-03 05:27:28 -060013 '../dbus/chassis.cpp',
Manojkiran Eda3012b632024-08-22 11:09:01 +053014 '../dbus/cpu_core.cpp',
15 '../dbus/pcie_device.cpp',
16 '../dbus/pcie_slot.cpp',
George Liudf9a6d32020-12-22 16:27:16 +080017]
18
Thu Nguyena34a64b2022-03-31 08:56:39 +070019tests = ['dbus_to_terminus_effecter_test', 'utils_test', 'custom_dbus_test']
Tom Joseph53279882021-04-28 06:29:13 -070020
21foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +053022 test(
23 t,
24 executable(
25 t.underscorify(),
26 t + '.cpp',
27 test_sources,
28 implicit_include_directories: false,
29 dependencies: [
30 gtest,
31 gmock,
32 host_bmc_test_src,
33 libpldm_dep,
34 libpldmutils,
35 nlohmann_json_dep,
36 phosphor_dbus_interfaces,
37 phosphor_logging_dep,
38 sdbusplus,
39 sdeventplus,
40 ],
41 ),
42 workdir: meson.current_source_dir(),
43 )
Tom Joseph53279882021-04-28 06:29:13 -070044endforeach