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', |
| 4 | '../../common/utils.cpp', |
| 5 | '../../pldmd/dbus_impl_requester.cpp', |
| 6 | '../../pldmd/instance_id.cpp']) |
| 7 | |
| 8 | tests = [ |
| 9 | 'inventory_manager_test', |
| 10 | ] |
| 11 | |
| 12 | foreach t : tests |
| 13 | test(t, executable(t.underscorify(), t + '.cpp', |
| 14 | implicit_include_directories: false, |
| 15 | link_args: dynamic_linker, |
| 16 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 17 | dependencies: [ |
| 18 | fw_update_test_src, |
| 19 | gtest, |
| 20 | libpldm_dep, |
| 21 | nlohmann_json, |
| 22 | phosphor_dbus_interfaces, |
| 23 | sdbusplus, |
| 24 | sdeventplus]), |
| 25 | workdir: meson.current_source_dir()) |
| 26 | endforeach |