blob: c5c01688071ba6147eaa29c80900289d5ab86391 [file] [log] [blame]
Manojkiran Eda06fca442022-08-18 07:52:11 +05301requester_inc = include_directories('../../')
Tom Joseph74f27c72021-05-16 07:58:53 -07002test_src = declare_dependency(
3 sources: [
4 '../../pldmd/dbus_impl_requester.cpp',
Manojkiran Eda06fca442022-08-18 07:52:11 +05305 '../../pldmd/instance_id.cpp'],
6 include_directories:requester_inc)
Tom Joseph74f27c72021-05-16 07:58:53 -07007
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,
Brad Bishopd169dd12021-07-29 13:24:15 -040022 nlohmann_json,
Tom Joseph74f27c72021-05-16 07:58:53 -070023 phosphor_dbus_interfaces,
24 sdbusplus,
25 sdeventplus,
26 test_src]),
27 workdir: meson.current_source_dir())
28endforeach