blob: d30d8849122c06d07603c82e9ae9fc5ad952c82d [file] [log] [blame]
Gilbert Chen44524a52022-02-14 12:12:25 +00001test_src = declare_dependency(
Unive Tien852160b2024-12-06 15:58:21 +08002 sources: [
3 '../mctp_endpoint_discovery.cpp',
4 '../../common/utils.cpp',
5 '../configuration_discovery_handler.cpp',
6 ],
Manojkiran Eda3012b632024-08-22 11:09:01 +05307)
Gilbert Chen44524a52022-02-14 12:12:25 +00008
Unive Tien852160b2024-12-06 15:58:21 +08009tests = [
10 'handler_test',
11 'request_test',
12 'mctp_endpoint_discovery_test',
13 'configuration_discovery_handler_test',
14]
Tom Joseph74f27c72021-05-16 07:58:53 -070015
16foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +053017 test(
18 t,
19 executable(
20 t.underscorify(),
21 t + '.cpp',
22 implicit_include_directories: false,
23 include_directories: ['../../', '../../pldmd'],
24 dependencies: [
25 gtest,
26 gmock,
27 libpldm_dep,
28 nlohmann_json_dep,
29 phosphor_dbus_interfaces,
30 phosphor_logging_dep,
31 sdbusplus,
32 sdeventplus,
33 test_src,
34 ],
35 ),
36 workdir: meson.current_source_dir(),
37 )
Tom Joseph74f27c72021-05-16 07:58:53 -070038endforeach