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