blob: 64177cce28d24b677efed0f838d426cc2ef7836a [file] [log] [blame]
test_src = declare_dependency(
sources: [
'../terminus_manager.cpp',
'../terminus.cpp',
'../platform_manager.cpp',
'../manager.cpp',
'../sensor_manager.cpp',
'../numeric_sensor.cpp',
'../../requester/mctp_endpoint_discovery.cpp'],
include_directories: ['../../requester', '../../pldmd'])
tests = [
'terminus_manager_test',
'terminus_test',
'platform_manager_test',
'sensor_manager_test',
'numeric_sensor_test',
]
foreach t : tests
test(t, executable(t.underscorify(), t + '.cpp',
implicit_include_directories: false,
dependencies: [
gtest,
gmock,
libpldm_dep,
libpldmutils,
nlohmann_json_dep,
phosphor_dbus_interfaces,
phosphor_logging_dep,
sdbusplus,
sdeventplus,
test_src]),
workdir: meson.current_source_dir())
endforeach