Gilbert Chen | 44524a5 | 2022-02-14 12:12:25 +0000 | [diff] [blame^] | 1 | test_src = declare_dependency( |
| 2 | sources: [ |
| 3 | '../mctp_endpoint_discovery.cpp', |
| 4 | '../../common/utils.cpp', |
| 5 | ]) |
| 6 | |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 7 | tests = [ |
| 8 | 'handler_test', |
| 9 | 'request_test', |
Gilbert Chen | 44524a5 | 2022-02-14 12:12:25 +0000 | [diff] [blame^] | 10 | 'mctp_endpoint_discovery_test', |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 11 | ] |
| 12 | |
| 13 | foreach t : tests |
| 14 | test(t, executable(t.underscorify(), t + '.cpp', |
| 15 | implicit_include_directories: false, |
Andrew Jeffery | 7c1dc7e | 2023-04-28 14:52:16 +0930 | [diff] [blame] | 16 | include_directories: [ '../../', '../../pldmd' ], |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 17 | dependencies: [ |
| 18 | gtest, |
| 19 | gmock, |
| 20 | libpldm_dep, |
Patrick Williams | cf77284 | 2023-12-07 14:39:52 -0600 | [diff] [blame] | 21 | nlohmann_json_dep, |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 22 | phosphor_dbus_interfaces, |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 23 | phosphor_logging_dep, |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 24 | sdbusplus, |
| 25 | sdeventplus, |
Gilbert Chen | 44524a5 | 2022-02-14 12:12:25 +0000 | [diff] [blame^] | 26 | test_src, |
Andrew Jeffery | 7c1dc7e | 2023-04-28 14:52:16 +0930 | [diff] [blame] | 27 | ]), |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 28 | workdir: meson.current_source_dir()) |
| 29 | endforeach |