Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 1 | host_bmc_test_src = declare_dependency( |
Thu Nguyen | a34a64b | 2022-03-31 08:56:39 +0700 | [diff] [blame] | 2 | sources: ['../dbus_to_terminus_effecters.cpp'], |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 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', |
Archana Kakani | 1634a6e | 2025-02-04 01:12:29 -0600 | [diff] [blame] | 10 | '../dbus/asset.cpp', |
Archana Kakani | f935537 | 2025-02-04 03:13:24 -0600 | [diff] [blame] | 11 | '../dbus/availability.cpp', |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 12 | '../dbus/cable.cpp', |
Archana Kakani | db65c3b | 2025-02-03 05:27:28 -0600 | [diff] [blame] | 13 | '../dbus/chassis.cpp', |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 14 | '../dbus/cpu_core.cpp', |
Archana Kakani | c366447 | 2025-02-04 05:36:37 -0600 | [diff] [blame] | 15 | '../dbus/inventory_item.cpp', |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 16 | '../dbus/pcie_device.cpp', |
| 17 | '../dbus/pcie_slot.cpp', |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 18 | ] |
| 19 | |
Thu Nguyen | a34a64b | 2022-03-31 08:56:39 +0700 | [diff] [blame] | 20 | tests = ['dbus_to_terminus_effecter_test', 'utils_test', 'custom_dbus_test'] |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 21 | |
| 22 | foreach t : tests |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 23 | test( |
| 24 | t, |
| 25 | executable( |
| 26 | t.underscorify(), |
| 27 | t + '.cpp', |
| 28 | test_sources, |
| 29 | implicit_include_directories: false, |
| 30 | dependencies: [ |
| 31 | gtest, |
| 32 | gmock, |
| 33 | host_bmc_test_src, |
| 34 | libpldm_dep, |
| 35 | libpldmutils, |
| 36 | nlohmann_json_dep, |
| 37 | phosphor_dbus_interfaces, |
| 38 | phosphor_logging_dep, |
| 39 | sdbusplus, |
| 40 | sdeventplus, |
| 41 | ], |
| 42 | ), |
| 43 | workdir: meson.current_source_dir(), |
| 44 | ) |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 45 | endforeach |