Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 1 | fw_update_test_src = declare_dependency( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 2 | 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 Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 11 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 12 | tests = ['inventory_manager_test', 'package_parser_test', 'device_updater_test'] |
Tom Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 13 | |
| 14 | foreach t : tests |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 15 | 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 Joseph | 75356c1 | 2021-06-20 03:52:40 -0700 | [diff] [blame] | 37 | endforeach |