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