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', |
George Liu | 682ee18 | 2020-12-25 15:24:33 +0800 | [diff] [blame] | 7 | '../custom_dbus.cpp', |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 8 | ] |
| 9 | |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 10 | tests = [ |
| 11 | 'dbus_to_host_effecter_test', |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 12 | 'utils_test', |
George Liu | 682ee18 | 2020-12-25 15:24:33 +0800 | [diff] [blame] | 13 | 'custom_dbus_test', |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 14 | ] |
| 15 | |
| 16 | foreach t : tests |
| 17 | test(t, executable(t.underscorify(), t + '.cpp', |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 18 | test_sources, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 19 | implicit_include_directories: false, |
| 20 | link_args: dynamic_linker, |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 21 | build_rpath: get_option('oe-sdk').allowed() ? rpath : '', |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 22 | dependencies: [ |
| 23 | gtest, |
| 24 | gmock, |
| 25 | host_bmc_test_src, |
| 26 | libpldm_dep, |
| 27 | libpldmutils, |
Patrick Williams | cf77284 | 2023-12-07 14:39:52 -0600 | [diff] [blame] | 28 | nlohmann_json_dep, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 29 | phosphor_dbus_interfaces, |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 30 | phosphor_logging_dep, |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 31 | sdbusplus, |
| 32 | sdeventplus]), |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 33 | workdir: meson.current_source_dir()) |
| 34 | endforeach |