blob: 1e639976a7380de2bb9c14af76cfbc2f20358ed3 [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,
Riya Dixit49cfb132023-03-02 04:26:53 -060024 phosphor_logging_dep,
Tom Joseph74f27c72021-05-16 07:58:53 -070025 sdbusplus,
26 sdeventplus,
27 test_src]),
28 workdir: meson.current_source_dir())
29endforeach