xref: /openbmc/pldm/requester/test/meson.build (revision fa084700)
1test_src = declare_dependency(
2          sources: [
3            '../mctp_endpoint_discovery.cpp',
4            '../../common/utils.cpp',
5          ])
6
7tests = [
8  'handler_test',
9  'request_test',
10  'mctp_endpoint_discovery_test',
11]
12
13foreach t : tests
14  test(t, executable(t.underscorify(), t + '.cpp',
15                     implicit_include_directories: false,
16                     include_directories: [ '../../', '../../pldmd' ],
17                     dependencies: [
18                         gtest,
19                         gmock,
20                         libpldm_dep,
21                         nlohmann_json_dep,
22                         phosphor_dbus_interfaces,
23                         phosphor_logging_dep,
24                         sdbusplus,
25                         sdeventplus,
26                         test_src,
27                    ]),
28       workdir: meson.current_source_dir())
29endforeach
30