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