Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 1 | fw_update_test_src = declare_dependency( |
| 2 | sources: [ |
Andrew Jeffery | f106a2c | 2024-07-25 21:45:41 +0930 | [diff] [blame] | 3 | '../activation.cpp', |
Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 4 | '../inventory_manager.cpp', |
Tom Joseph | 1630f39 | 2021-06-29 04:30:03 -0700 | [diff] [blame] | 5 | '../package_parser.cpp', |
Tom Joseph | ef90b0d | 2021-08-17 07:12:49 -0700 | [diff] [blame] | 6 | '../device_updater.cpp', |
Tom Joseph | 4d8d577 | 2021-08-17 07:35:05 -0700 | [diff] [blame] | 7 | '../update_manager.cpp', |
Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 8 | '../../common/utils.cpp', |
Andrew Jeffery | 7c1dc7e | 2023-04-28 14:52:16 +0930 | [diff] [blame] | 9 | ]) |
Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 10 | |
| 11 | tests = [ |
| 12 | 'inventory_manager_test', |
Tom Joseph | 1630f39 | 2021-06-29 04:30:03 -0700 | [diff] [blame] | 13 | 'package_parser_test', |
Tom Joseph | ef90b0d | 2021-08-17 07:12:49 -0700 | [diff] [blame] | 14 | 'device_updater_test' |
Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 15 | ] |
| 16 | |
| 17 | foreach t : tests |
| 18 | test(t, executable(t.underscorify(), t + '.cpp', |
| 19 | implicit_include_directories: false, |
Andrew Jeffery | 7c1dc7e | 2023-04-28 14:52:16 +0930 | [diff] [blame] | 20 | include_directories: '../../pldmd', |
Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 21 | dependencies: [ |
| 22 | fw_update_test_src, |
Brad Bishop | 1695b66 | 2021-11-24 14:52:09 -0500 | [diff] [blame] | 23 | gmock, |
Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 24 | gtest, |
| 25 | libpldm_dep, |
Manojkiran Eda | 06fca44 | 2022-08-18 07:52:11 +0530 | [diff] [blame] | 26 | libpldmutils, |
Patrick Williams | cf77284 | 2023-12-07 14:39:52 -0600 | [diff] [blame] | 27 | nlohmann_json_dep, |
Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 28 | phosphor_dbus_interfaces, |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 29 | phosphor_logging_dep, |
Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 30 | sdbusplus, |
| 31 | sdeventplus]), |
| 32 | workdir: meson.current_source_dir()) |
| 33 | endforeach |