xref: /openbmc/pldm/test/meson.build (revision dcdcd3b8)
1test_src = declare_dependency(
2          sources: [
3            '../pldmd/instance_id.cpp'])
4
5tests = [
6  'pldmd_instanceid_test',
7  'pldmd_registration_test',
8]
9
10foreach t : tests
11  test(t, executable(t.underscorify(), t + '.cpp',
12                     implicit_include_directories: false,
13                     link_args: dynamic_linker,
14                     build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
15                     dependencies: [
16                         libpldm_dep,
17                         nlohmann_json,
18                         gtest,
19                         test_src]),
20       workdir: meson.current_source_dir())
21endforeach
22