blob: f4e4f4695de6bd40541d6d0501c81f6b138d5cec [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',
13]
14
15foreach t : tests
16 test(t, executable(t.underscorify(), t + '.cpp',
17 implicit_include_directories: false,
18 dependencies: [
19 gtest,
20 gmock,
21 libpldm_dep,
22 libpldmutils,
23 nlohmann_json_dep,
24 phosphor_dbus_interfaces,
25 phosphor_logging_dep,
26 sdbusplus,
27 sdeventplus,
28 test_src]),
29 workdir: meson.current_source_dir())
30endforeach