blob: f269561b1cd229e65976052cb0dc110abf56e34a [file] [log] [blame]
Gilbert Chen44524a52022-02-14 12:12:25 +00001test_src = declare_dependency(
Manojkiran Eda3012b632024-08-22 11:09:01 +05302 sources: ['../mctp_endpoint_discovery.cpp', '../../common/utils.cpp'],
3)
Gilbert Chen44524a52022-02-14 12:12:25 +00004
Manojkiran Eda3012b632024-08-22 11:09:01 +05305tests = ['handler_test', 'request_test', 'mctp_endpoint_discovery_test']
Tom Joseph74f27c72021-05-16 07:58:53 -07006
7foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +05308 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 Joseph74f27c72021-05-16 07:58:53 -070029endforeach