blob: aee5f7b2a6166a791840a4f2752cd2fe434eb7ce [file] [log] [blame]
test_src = declare_dependency(
sources: [
'../pldmd/instance_id.cpp'])
tests = [
'pldmd_instanceid_test',
'pldmd_registration_test',
]
foreach t : tests
test(t, executable(t.underscorify(), t + '.cpp',
implicit_include_directories: false,
link_args: dynamic_linker,
build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
dependencies: [
libpldm_dep,
nlohmann_json,
gtest,
test_src]),
workdir: meson.current_source_dir())
endforeach