Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 1 | host_bmc_test_src = declare_dependency( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 2 | sources: ['../dbus_to_host_effecters.cpp'], |
| 3 | include_directories: '../../requester', |
| 4 | ) |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 5 | |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 6 | test_sources = [ |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 7 | '../../common/utils.cpp', |
| 8 | '../utils.cpp', |
| 9 | '../dbus/custom_dbus.cpp', |
| 10 | '../dbus/cable.cpp', |
| 11 | '../dbus/cpu_core.cpp', |
| 12 | '../dbus/pcie_device.cpp', |
| 13 | '../dbus/pcie_slot.cpp', |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 14 | ] |
| 15 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 16 | tests = ['dbus_to_host_effecter_test', 'utils_test', 'custom_dbus_test'] |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 17 | |
| 18 | foreach t : tests |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 19 | test( |
| 20 | t, |
| 21 | executable( |
| 22 | t.underscorify(), |
| 23 | t + '.cpp', |
| 24 | test_sources, |
| 25 | implicit_include_directories: false, |
| 26 | dependencies: [ |
| 27 | gtest, |
| 28 | gmock, |
| 29 | host_bmc_test_src, |
| 30 | libpldm_dep, |
| 31 | libpldmutils, |
| 32 | nlohmann_json_dep, |
| 33 | phosphor_dbus_interfaces, |
| 34 | phosphor_logging_dep, |
| 35 | sdbusplus, |
| 36 | sdeventplus, |
| 37 | ], |
| 38 | ), |
| 39 | workdir: meson.current_source_dir(), |
| 40 | ) |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 41 | endforeach |