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