blob: 74caa3eecd435e76f6048cde11f615317c76bbab [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,
Brad Bishopd169dd12021-07-29 13:24:15 -040020 nlohmann_json,
Tom Joseph74f27c72021-05-16 07:58:53 -070021 phosphor_dbus_interfaces,
22 sdbusplus,
23 sdeventplus,
24 test_src]),
25 workdir: meson.current_source_dir())
26endforeach