blob: 6b95f908cc4efb51ac672035e4c8a18231b54e75 [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',
Thu Nguyen3c5486d2024-08-01 08:03:08 +00007 '../numeric_sensor.cpp',
Gilbert Chen6c7fed42022-02-22 15:40:17 +00008 '../../requester/mctp_endpoint_discovery.cpp'],
9 include_directories: ['../../requester', '../../pldmd'])
10
11tests = [
12 'terminus_manager_test',
13 'terminus_test',
Gilbert Chende2a1322022-05-24 15:35:21 +010014 'platform_manager_test',
Gilbert Chen6c7fed42022-02-22 15:40:17 +000015]
16
17foreach t : tests
18 test(t, executable(t.underscorify(), t + '.cpp',
19 implicit_include_directories: false,
20 dependencies: [
21 gtest,
22 gmock,
23 libpldm_dep,
24 libpldmutils,
25 nlohmann_json_dep,
26 phosphor_dbus_interfaces,
27 phosphor_logging_dep,
28 sdbusplus,
29 sdeventplus,
30 test_src]),
31 workdir: meson.current_source_dir())
32endforeach