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