blob: 4ae286dc9d70536fd30c0f79d1725964d3a713c7 [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',
Archana Kakanic3664472025-02-04 05:36:37 -060015 '../dbus/inventory_item.cpp',
Manojkiran Eda3012b632024-08-22 11:09:01 +053016 '../dbus/pcie_device.cpp',
17 '../dbus/pcie_slot.cpp',
George Liudf9a6d32020-12-22 16:27:16 +080018]
19
Thu Nguyena34a64b2022-03-31 08:56:39 +070020tests = ['dbus_to_terminus_effecter_test', 'utils_test', 'custom_dbus_test']
Tom Joseph53279882021-04-28 06:29:13 -070021
22foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +053023 test(
24 t,
25 executable(
26 t.underscorify(),
27 t + '.cpp',
28 test_sources,
29 implicit_include_directories: false,
30 dependencies: [
31 gtest,
32 gmock,
33 host_bmc_test_src,
34 libpldm_dep,
35 libpldmutils,
36 nlohmann_json_dep,
37 phosphor_dbus_interfaces,
38 phosphor_logging_dep,
39 sdbusplus,
40 sdeventplus,
41 ],
42 ),
43 workdir: meson.current_source_dir(),
44 )
Tom Joseph53279882021-04-28 06:29:13 -070045endforeach