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', |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 5 | '../../pldmd/instance_id.cpp'], |
| 6 | include_directories: '../../requester') |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 7 | |
| 8 | tests = [ |
| 9 | 'dbus_to_host_effecter_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 | gtest, |
| 19 | gmock, |
| 20 | host_bmc_test_src, |
| 21 | libpldm_dep, |
| 22 | libpldmutils, |
Brad Bishop | d169dd1 | 2021-07-29 13:24:15 -0400 | [diff] [blame] | 23 | nlohmann_json, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 24 | phosphor_dbus_interfaces, |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 25 | sdbusplus, |
| 26 | sdeventplus]), |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 27 | workdir: meson.current_source_dir()) |
| 28 | endforeach |