blob: 61d95dd6bd4e60ca1ae3eb07ac96cf47bcb4454e [file] [log] [blame]
Tom Joseph75356c12021-06-20 03:52:40 -07001fw_update_test_src = declare_dependency(
2 sources: [
3 '../inventory_manager.cpp',
Tom Joseph1630f392021-06-29 04:30:03 -07004 '../package_parser.cpp',
Tom Josephef90b0d2021-08-17 07:12:49 -07005 '../device_updater.cpp',
Tom Joseph4d8d5772021-08-17 07:35:05 -07006 '../update_manager.cpp',
Tom Joseph75356c12021-06-20 03:52:40 -07007 '../../common/utils.cpp',
8 '../../pldmd/dbus_impl_requester.cpp',
9 '../../pldmd/instance_id.cpp'])
10
11tests = [
12 'inventory_manager_test',
Tom Joseph1630f392021-06-29 04:30:03 -070013 'package_parser_test',
Tom Josephef90b0d2021-08-17 07:12:49 -070014 'device_updater_test'
Tom Joseph75356c12021-06-20 03:52:40 -070015]
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,
Brad Bishop1695b662021-11-24 14:52:09 -050024 gmock,
Tom Joseph75356c12021-06-20 03:52:40 -070025 gtest,
26 libpldm_dep,
27 nlohmann_json,
28 phosphor_dbus_interfaces,
29 sdbusplus,
30 sdeventplus]),
31 workdir: meson.current_source_dir())
32endforeach