1host_bmc_test_src = declare_dependency( 2 sources: [ '../dbus_to_host_effecters.cpp' ], 3 include_directories: '../../requester') 4 5test_sources = [ 6 '../../common/utils.cpp', 7 '../utils.cpp', 8 '../dbus/custom_dbus.cpp', 9 '../dbus/cpu_core.cpp', 10] 11 12tests = [ 13 'dbus_to_host_effecter_test', 14 'utils_test', 15 'custom_dbus_test', 16] 17 18foreach t : tests 19 test(t, executable(t.underscorify(), t + '.cpp', 20 test_sources, 21 implicit_include_directories: false, 22 dependencies: [ 23 gtest, 24 gmock, 25 host_bmc_test_src, 26 libpldm_dep, 27 libpldmutils, 28 nlohmann_json_dep, 29 phosphor_dbus_interfaces, 30 phosphor_logging_dep, 31 sdbusplus, 32 sdeventplus]), 33 workdir: meson.current_source_dir()) 34endforeach 35