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', |
George Liu | 682ee18 | 2020-12-25 15:24:33 +0800 | [diff] [blame] | 8 | '../custom_dbus.cpp', |
Kamalkumar Patel | 4e69d25 | 2024-05-10 08:48:03 -0500 | [diff] [blame] | 9 | '../utils.cpp' |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 10 | ] |
| 11 | |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 12 | tests = [ |
| 13 | 'dbus_to_host_effecter_test', |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 14 | 'utils_test', |
George Liu | 682ee18 | 2020-12-25 15:24:33 +0800 | [diff] [blame] | 15 | 'custom_dbus_test', |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 16 | ] |
| 17 | |
| 18 | foreach t : tests |
| 19 | test(t, executable(t.underscorify(), t + '.cpp', |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 20 | test_sources, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 21 | implicit_include_directories: false, |
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 |