1test_src = declare_dependency( 2 sources: [ 3 '../../pldmd/dbus_impl_requester.cpp', 4 '../../pldmd/instance_id.cpp']) 5 6tests = [ 7 'handler_test', 8 'request_test', 9] 10 11foreach t : tests 12 test(t, executable(t.underscorify(), t + '.cpp', 13 implicit_include_directories: false, 14 link_args: dynamic_linker, 15 build_rpath: get_option('oe-sdk').enabled() ? rpath : '', 16 dependencies: [ 17 gtest, 18 gmock, 19 libpldm_dep, 20 nlohmann_json, 21 phosphor_dbus_interfaces, 22 sdbusplus, 23 sdeventplus, 24 test_src]), 25 workdir: meson.current_source_dir()) 26endforeach 27