Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 1 | host_bmc_test_src = declare_dependency( |
Andrew Jeffery | 7c1dc7e | 2023-04-28 14:52:16 +0930 | [diff] [blame] | 2 | sources: [ '../dbus_to_host_effecters.cpp' ], |
| 3 | include_directories: '../../requester') |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 4 | |
| 5 | tests = [ |
| 6 | 'dbus_to_host_effecter_test', |
| 7 | ] |
| 8 | |
| 9 | foreach t : tests |
| 10 | test(t, executable(t.underscorify(), t + '.cpp', |
| 11 | implicit_include_directories: false, |
| 12 | link_args: dynamic_linker, |
| 13 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 14 | dependencies: [ |
| 15 | gtest, |
| 16 | gmock, |
| 17 | host_bmc_test_src, |
| 18 | libpldm_dep, |
| 19 | libpldmutils, |
Brad Bishop | d169dd1 | 2021-07-29 13:24:15 -0400 | [diff] [blame] | 20 | nlohmann_json, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 21 | phosphor_dbus_interfaces, |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 22 | phosphor_logging_dep, |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 23 | sdbusplus, |
| 24 | sdeventplus]), |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 25 | workdir: meson.current_source_dir()) |
| 26 | endforeach |