blob: 48eee8ce2fa55a8b22180061554902605131d40f [file]
pldmd_inc = include_directories('../')
test_src = declare_dependency(include_directories: pldmd_inc)
tests = ['pldmd_registration_test']
if get_option('oem-intel').allowed()
tests += ['oem_intel_ras_test']
endif
foreach t : tests
test_sources = [t + '.cpp']
test_deps = [libpldm_dep, nlohmann_json_dep, gtest, test_src]
if t == 'oem_intel_ras_test'
test_sources += oem_files
test_deps += [
libpldmutils,
phosphor_dbus_interfaces,
phosphor_logging_dep,
sdbusplus,
sdeventplus,
gmock,
]
endif
test(
t,
executable(
t.underscorify(),
test_sources,
implicit_include_directories: false,
dependencies: test_deps,
),
workdir: meson.current_source_dir(),
)
endforeach