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', |
| 8 | '../../pldmd/dbus_impl_requester.cpp', |
| 9 | '../../pldmd/instance_id.cpp']) |
| 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, |
| 20 | link_args: dynamic_linker, |
| 21 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 22 | dependencies: [ |
| 23 | fw_update_test_src, |
| 24 | gtest, |
| 25 | libpldm_dep, |
| 26 | nlohmann_json, |
| 27 | phosphor_dbus_interfaces, |
| 28 | sdbusplus, |
| 29 | sdeventplus]), |
| 30 | workdir: meson.current_source_dir()) |
| 31 | endforeach |