blob: e26d75bad8ab4f83e54037737c3ddc788b095e2f [file] [log] [blame]
Manojkiran Eda3012b632024-08-22 11:09:01 +05301common_test_src = declare_dependency(sources: ['../utils.cpp'])
Tom Joseph53279882021-04-28 06:29:13 -07002
Manojkiran Eda3012b632024-08-22 11:09:01 +05303tests = ['pldm_utils_test']
Tom Joseph53279882021-04-28 06:29:13 -07004
5foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +05306 test(
7 t,
8 executable(
9 t.underscorify(),
10 t + '.cpp',
11 implicit_include_directories: false,
12 dependencies: [
13 common_test_src,
14 gmock,
15 gtest,
16 libpldm_dep,
17 nlohmann_json_dep,
18 phosphor_dbus_interfaces,
19 phosphor_logging_dep,
20 libpldmutils,
21 sdbusplus,
22 ],
23 ),
24 workdir: meson.current_source_dir(),
25 )
Tom Joseph53279882021-04-28 06:29:13 -070026endforeach