blob: 2254a3ac35f534f11707c51037c8c30a1ca2714b [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',
5 '../../pldmd/instance_id.cpp'])
6
7tests = [
8 'dbus_to_host_effecter_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 host_bmc_test_src,
20 libpldm_dep,
21 libpldmutils,
22 phosphor_dbus_interfaces,
23 sdbusplus]),
24 workdir: meson.current_source_dir())
25endforeach