blob: 0e8bc87af2579f5b22ffc7073111e26737e0393a [file] [log] [blame]
Gilbert Chen6c7fed42022-02-22 15:40:17 +00001test_src = declare_dependency(
Manojkiran Eda3012b632024-08-22 11:09:01 +05302 sources: [
3 '../terminus_manager.cpp',
4 '../terminus.cpp',
5 '../platform_manager.cpp',
6 '../manager.cpp',
7 '../sensor_manager.cpp',
8 '../numeric_sensor.cpp',
Gilbert Chen77e6fe72024-08-06 09:23:30 +00009 '../event_manager.cpp',
Manojkiran Eda3012b632024-08-22 11:09:01 +053010 '../../requester/mctp_endpoint_discovery.cpp',
11 ],
12 include_directories: ['../../requester', '../../pldmd'],
13)
Gilbert Chen6c7fed42022-02-22 15:40:17 +000014
15tests = [
Manojkiran Eda3012b632024-08-22 11:09:01 +053016 'terminus_manager_test',
17 'terminus_test',
18 'platform_manager_test',
19 'sensor_manager_test',
20 'numeric_sensor_test',
Gilbert Chen77e6fe72024-08-06 09:23:30 +000021 'event_manager_test',
Gilbert Chen6c7fed42022-02-22 15:40:17 +000022]
23
24foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +053025 test(
26 t,
27 executable(
28 t.underscorify(),
29 t + '.cpp',
30 implicit_include_directories: false,
31 dependencies: [
32 gtest,
33 gmock,
34 libpldm_dep,
35 libpldmutils,
36 nlohmann_json_dep,
37 phosphor_dbus_interfaces,
38 phosphor_logging_dep,
39 sdbusplus,
40 sdeventplus,
41 test_src,
42 ],
43 ),
44 workdir: meson.current_source_dir(),
45 )
Gilbert Chen6c7fed42022-02-22 15:40:17 +000046endforeach