blob: e419ccf7ae71faf398d6bd45d6a4587e61c1bc90 [file] [log] [blame]
Tom Joseph75356c12021-06-20 03:52:40 -07001fw_update_test_src = declare_dependency(
Manojkiran Eda3012b632024-08-22 11:09:01 +05302 sources: [
3 '../activation.cpp',
4 '../inventory_manager.cpp',
5 '../package_parser.cpp',
6 '../device_updater.cpp',
7 '../update_manager.cpp',
8 '../../common/utils.cpp',
9 ],
10)
Tom Joseph75356c12021-06-20 03:52:40 -070011
Manojkiran Eda3012b632024-08-22 11:09:01 +053012tests = ['inventory_manager_test', 'package_parser_test', 'device_updater_test']
Tom Joseph75356c12021-06-20 03:52:40 -070013
14foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +053015 test(
16 t,
17 executable(
18 t.underscorify(),
19 t + '.cpp',
20 implicit_include_directories: false,
21 include_directories: '../../pldmd',
22 dependencies: [
23 fw_update_test_src,
24 gmock,
25 gtest,
26 libpldm_dep,
27 libpldmutils,
28 nlohmann_json_dep,
29 phosphor_dbus_interfaces,
30 phosphor_logging_dep,
31 sdbusplus,
32 sdeventplus,
33 ],
34 ),
35 workdir: meson.current_source_dir(),
36 )
Tom Joseph75356c12021-06-20 03:52:40 -070037endforeach