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