blob: 5749e14f801821358254317afcd8283a9ef497f4 [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',
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +09308 ])
Tom Joseph75356c12021-06-20 03:52:40 -07009
10tests = [
11 'inventory_manager_test',
Tom Joseph1630f392021-06-29 04:30:03 -070012 'package_parser_test',
Tom Josephef90b0d2021-08-17 07:12:49 -070013 'device_updater_test'
Tom Joseph75356c12021-06-20 03:52:40 -070014]
15
16foreach t : tests
17 test(t, executable(t.underscorify(), t + '.cpp',
18 implicit_include_directories: false,
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +093019 include_directories: '../../pldmd',
Tom Joseph75356c12021-06-20 03:52:40 -070020 dependencies: [
21 fw_update_test_src,
Brad Bishop1695b662021-11-24 14:52:09 -050022 gmock,
Tom Joseph75356c12021-06-20 03:52:40 -070023 gtest,
24 libpldm_dep,
Manojkiran Eda06fca442022-08-18 07:52:11 +053025 libpldmutils,
Patrick Williamscf772842023-12-07 14:39:52 -060026 nlohmann_json_dep,
Tom Joseph75356c12021-06-20 03:52:40 -070027 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -060028 phosphor_logging_dep,
Tom Joseph75356c12021-06-20 03:52:40 -070029 sdbusplus,
30 sdeventplus]),
31 workdir: meson.current_source_dir())
32endforeach