blob: 8c4f570e80793c2ddb3e50198c727e339c65f91d [file] [log] [blame]
Gilbert Chen6c7fed42022-02-22 15:40:17 +00001test_src = declare_dependency(
2 sources: [
3 '../terminus_manager.cpp',
4 '../terminus.cpp',
5 '../platform_manager.cpp',
6 '../manager.cpp',
7 '../../requester/mctp_endpoint_discovery.cpp'],
8 include_directories: ['../../requester', '../../pldmd'])
9
10tests = [
11 'terminus_manager_test',
12 'terminus_test',
Gilbert Chende2a1322022-05-24 15:35:21 +010013 'platform_manager_test',
Gilbert Chen6c7fed42022-02-22 15:40:17 +000014]
15
16foreach t : tests
17 test(t, executable(t.underscorify(), t + '.cpp',
18 implicit_include_directories: false,
19 dependencies: [
20 gtest,
21 gmock,
22 libpldm_dep,
23 libpldmutils,
24 nlohmann_json_dep,
25 phosphor_dbus_interfaces,
26 phosphor_logging_dep,
27 sdbusplus,
28 sdeventplus,
29 test_src]),
30 workdir: meson.current_source_dir())
31endforeach