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