blob: d2846b2c814a06ec3a56c5491c956c6b6c787121 [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001host_bmc_test_src = declare_dependency(
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +09302 sources: [ '../dbus_to_host_effecters.cpp' ],
3 include_directories: '../../requester')
Tom Joseph53279882021-04-28 06:29:13 -07004
George Liudf9a6d32020-12-22 16:27:16 +08005test_sources = [
6 '../../common/utils.cpp',
Kamalkumar Patel516122e2024-05-07 04:39:32 -05007 '../utils.cpp',
Kamalkumar Patel14107a12024-06-19 08:50:01 -05008 '../dbus/custom_dbus.cpp',
Kamalkumar Patel56da5742024-05-23 04:53:07 -05009 '../dbus/cpu_core.cpp',
Archana Kakani733b39d2024-06-05 21:05:20 -050010 '../dbus/pcie_device.cpp',
Archana Kakanibf1fd272024-06-05 13:25:53 -050011 '../dbus/pcie_slot.cpp',
George Liudf9a6d32020-12-22 16:27:16 +080012]
13
Tom Joseph53279882021-04-28 06:29:13 -070014tests = [
15 'dbus_to_host_effecter_test',
George Liudf9a6d32020-12-22 16:27:16 +080016 'utils_test',
George Liu682ee182020-12-25 15:24:33 +080017 'custom_dbus_test',
Tom Joseph53279882021-04-28 06:29:13 -070018]
19
20foreach t : tests
21 test(t, executable(t.underscorify(), t + '.cpp',
George Liudf9a6d32020-12-22 16:27:16 +080022 test_sources,
Tom Joseph53279882021-04-28 06:29:13 -070023 implicit_include_directories: false,
Tom Joseph53279882021-04-28 06:29:13 -070024 dependencies: [
25 gtest,
26 gmock,
27 host_bmc_test_src,
28 libpldm_dep,
29 libpldmutils,
Patrick Williamscf772842023-12-07 14:39:52 -060030 nlohmann_json_dep,
Tom Joseph53279882021-04-28 06:29:13 -070031 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -060032 phosphor_logging_dep,
Sampa Misrac0c79482021-06-02 08:01:54 -050033 sdbusplus,
34 sdeventplus]),
Tom Joseph53279882021-04-28 06:29:13 -070035 workdir: meson.current_source_dir())
36endforeach