blob: 9b3cfd6bbca32b86ea281cbb94288d178b9232b4 [file] [log] [blame]
fw_update_test_src = declare_dependency(
sources: [
'../inventory_manager.cpp',
'../package_parser.cpp',
'../device_updater.cpp',
'../update_manager.cpp',
'../../common/utils.cpp',
'../../pldmd/dbus_impl_requester.cpp',
'../../pldmd/instance_id.cpp'])
tests = [
'inventory_manager_test',
'package_parser_test',
'device_updater_test'
]
foreach t : tests
test(t, executable(t.underscorify(), t + '.cpp',
implicit_include_directories: false,
link_args: dynamic_linker,
build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
dependencies: [
fw_update_test_src,
gmock,
gtest,
libpldm_dep,
libpldmutils,
nlohmann_json,
phosphor_dbus_interfaces,
phosphor_logging_dep,
sdbusplus,
sdeventplus]),
workdir: meson.current_source_dir())
endforeach