blob: 1f5fe17c5715505a05b5343d6c13e4858515b759 [file] [log] [blame]
Tom Joseph74f27c72021-05-16 07:58:53 -07001test_src = declare_dependency(
2 sources: [
3 '../../pldmd/dbus_impl_requester.cpp',
4 '../../pldmd/instance_id.cpp'])
5
6tests = [
7 'handler_test',
8 'request_test',
9]
10
11foreach t : tests
12 test(t, executable(t.underscorify(), t + '.cpp',
13 implicit_include_directories: false,
14 link_args: dynamic_linker,
15 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
16 dependencies: [
17 gtest,
18 gmock,
19 libpldm_dep,
20 phosphor_dbus_interfaces,
21 sdbusplus,
22 sdeventplus,
23 test_src]),
24 workdir: meson.current_source_dir())
25endforeach