blob: ab7b20ac303442767e59de5735df9ba7ccc658c6 [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',
9 '../../requester/mctp_endpoint_discovery.cpp',
10 ],
11 include_directories: ['../../requester', '../../pldmd'],
12)
Gilbert Chen6c7fed42022-02-22 15:40:17 +000013
14tests = [
Manojkiran Eda3012b632024-08-22 11:09:01 +053015 'terminus_manager_test',
16 'terminus_test',
17 'platform_manager_test',
18 'sensor_manager_test',
19 'numeric_sensor_test',
Gilbert Chen6c7fed42022-02-22 15:40:17 +000020]
21
22foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +053023 test(
24 t,
25 executable(
26 t.underscorify(),
27 t + '.cpp',
28 implicit_include_directories: false,
29 dependencies: [
30 gtest,
31 gmock,
32 libpldm_dep,
33 libpldmutils,
34 nlohmann_json_dep,
35 phosphor_dbus_interfaces,
36 phosphor_logging_dep,
37 sdbusplus,
38 sdeventplus,
39 test_src,
40 ],
41 ),
42 workdir: meson.current_source_dir(),
43 )
Gilbert Chen6c7fed42022-02-22 15:40:17 +000044endforeach