blob: 5af5dc963034ec2b46dcd3f604445a378ea60c15 [file] [log] [blame]
Tom Joseph75356c12021-06-20 03:52:40 -07001fw_update_test_src = declare_dependency(
2 sources: [
Andrew Jefferyf106a2c2024-07-25 21:45:41 +09303 '../activation.cpp',
Tom Joseph75356c12021-06-20 03:52:40 -07004 '../inventory_manager.cpp',
Tom Joseph1630f392021-06-29 04:30:03 -07005 '../package_parser.cpp',
Tom Josephef90b0d2021-08-17 07:12:49 -07006 '../device_updater.cpp',
Tom Joseph4d8d5772021-08-17 07:35:05 -07007 '../update_manager.cpp',
Tom Joseph75356c12021-06-20 03:52:40 -07008 '../../common/utils.cpp',
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +09309 ])
Tom Joseph75356c12021-06-20 03:52:40 -070010
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,
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +093020 include_directories: '../../pldmd',
Tom Joseph75356c12021-06-20 03:52:40 -070021 dependencies: [
22 fw_update_test_src,
Brad Bishop1695b662021-11-24 14:52:09 -050023 gmock,
Tom Joseph75356c12021-06-20 03:52:40 -070024 gtest,
25 libpldm_dep,
Manojkiran Eda06fca442022-08-18 07:52:11 +053026 libpldmutils,
Patrick Williamscf772842023-12-07 14:39:52 -060027 nlohmann_json_dep,
Tom Joseph75356c12021-06-20 03:52:40 -070028 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -060029 phosphor_logging_dep,
Tom Joseph75356c12021-06-20 03:52:40 -070030 sdbusplus,
31 sdeventplus]),
32 workdir: meson.current_source_dir())
33endforeach