blob: 0bb3b8b3090a7d6f3177ad71ea73cae7fae5f0af [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001host_bmc_test_src = declare_dependency(
2 sources: [
3 '../dbus_to_host_effecters.cpp',
4 '../../pldmd/dbus_impl_requester.cpp',
Sampa Misrac0c79482021-06-02 08:01:54 -05005 '../../pldmd/instance_id.cpp'],
6 include_directories: '../../requester')
Tom Joseph53279882021-04-28 06:29:13 -07007
8tests = [
9 'dbus_to_host_effecter_test',
10]
11
12foreach t : tests
13 test(t, executable(t.underscorify(), t + '.cpp',
14 implicit_include_directories: false,
15 link_args: dynamic_linker,
16 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
17 dependencies: [
18 gtest,
19 gmock,
20 host_bmc_test_src,
21 libpldm_dep,
22 libpldmutils,
Brad Bishopd169dd12021-07-29 13:24:15 -040023 nlohmann_json,
Tom Joseph53279882021-04-28 06:29:13 -070024 phosphor_dbus_interfaces,
Sampa Misrac0c79482021-06-02 08:01:54 -050025 sdbusplus,
26 sdeventplus]),
Tom Joseph53279882021-04-28 06:29:13 -070027 workdir: meson.current_source_dir())
28endforeach