xref: /openbmc/pldm/requester/test/meson.build (revision 19ea04c3)
1requester_inc = include_directories('../../')
2test_src = declare_dependency(
3          sources: [
4            '../../pldmd/dbus_impl_requester.cpp',
5            '../../pldmd/instance_id.cpp'],
6          include_directories:requester_inc)
7
8tests = [
9  'handler_test',
10  'request_test',
11]
12
13foreach t : tests
14  test(t, executable(t.underscorify(), t + '.cpp',
15                     implicit_include_directories: false,
16                     link_args: dynamic_linker,
17                     build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
18                     dependencies: [
19                         gtest,
20                         gmock,
21                         libpldm_dep,
22                         nlohmann_json,
23                         phosphor_dbus_interfaces,
24                         phosphor_logging_dep,
25                         sdbusplus,
26                         sdeventplus,
27                         test_src]),
28       workdir: meson.current_source_dir())
29endforeach
30