Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 1 | host_bmc_test_src = declare_dependency( |
| 2 | sources: [ |
| 3 | '../dbus_to_host_effecters.cpp', |
| 4 | '../../pldmd/dbus_impl_requester.cpp', |
| 5 | '../../pldmd/instance_id.cpp']) |
| 6 | |
| 7 | tests = [ |
| 8 | 'dbus_to_host_effecter_test', |
| 9 | ] |
| 10 | |
| 11 | foreach t : tests |
| 12 | test(t, executable(t.underscorify(), t + '.cpp', |
| 13 | implicit_include_directories: false, |
| 14 | link_args: dynamic_linker, |
| 15 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 16 | dependencies: [ |
| 17 | gtest, |
| 18 | gmock, |
| 19 | host_bmc_test_src, |
| 20 | libpldm_dep, |
| 21 | libpldmutils, |
| 22 | phosphor_dbus_interfaces, |
| 23 | sdbusplus]), |
| 24 | workdir: meson.current_source_dir()) |
| 25 | endforeach |