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 | |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame^] | 5 | test_sources = [ |
| 6 | '../../common/utils.cpp', |
| 7 | ] |
| 8 | |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 9 | tests = [ |
| 10 | 'dbus_to_host_effecter_test', |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame^] | 11 | 'utils_test', |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 12 | ] |
| 13 | |
| 14 | foreach t : tests |
| 15 | test(t, executable(t.underscorify(), t + '.cpp', |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame^] | 16 | test_sources, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 17 | implicit_include_directories: false, |
| 18 | link_args: dynamic_linker, |
| 19 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 20 | dependencies: [ |
| 21 | gtest, |
| 22 | gmock, |
| 23 | host_bmc_test_src, |
| 24 | libpldm_dep, |
| 25 | libpldmutils, |
Brad Bishop | d169dd1 | 2021-07-29 13:24:15 -0400 | [diff] [blame] | 26 | nlohmann_json, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 27 | phosphor_dbus_interfaces, |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 28 | phosphor_logging_dep, |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 29 | sdbusplus, |
| 30 | sdeventplus]), |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 31 | workdir: meson.current_source_dir()) |
| 32 | endforeach |