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 '../custom_dbus.cpp', 8] 9 10tests = [ 11 'dbus_to_host_effecter_test', 12 'utils_test', 13 'custom_dbus_test', 14] 15 16foreach t : tests 17 test(t, executable(t.underscorify(), t + '.cpp', 18 test_sources, 19 implicit_include_directories: false, 20 link_args: dynamic_linker, 21 build_rpath: get_option('oe-sdk').allowed() ? rpath : '', 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