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