Gilbert Chen | 44524a5 | 2022-02-14 12:12:25 +0000 | [diff] [blame] | 1 | test_src = declare_dependency( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 2 | sources: ['../mctp_endpoint_discovery.cpp', '../../common/utils.cpp'], |
| 3 | ) |
Gilbert Chen | 44524a5 | 2022-02-14 12:12:25 +0000 | [diff] [blame] | 4 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 5 | tests = ['handler_test', 'request_test', 'mctp_endpoint_discovery_test'] |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 6 | |
| 7 | foreach t : tests |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 8 | test( |
| 9 | t, |
| 10 | executable( |
| 11 | t.underscorify(), |
| 12 | t + '.cpp', |
| 13 | implicit_include_directories: false, |
| 14 | include_directories: ['../../', '../../pldmd'], |
| 15 | dependencies: [ |
| 16 | gtest, |
| 17 | gmock, |
| 18 | libpldm_dep, |
| 19 | nlohmann_json_dep, |
| 20 | phosphor_dbus_interfaces, |
| 21 | phosphor_logging_dep, |
| 22 | sdbusplus, |
| 23 | sdeventplus, |
| 24 | test_src, |
| 25 | ], |
| 26 | ), |
| 27 | workdir: meson.current_source_dir(), |
| 28 | ) |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 29 | endforeach |