blob: 9c4a0dd36579ee1ec4839f3df580152c6eda1982 [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001host_bmc_test_src = declare_dependency(
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +09302 sources: [ '../dbus_to_host_effecters.cpp' ],
3 include_directories: '../../requester')
Tom Joseph53279882021-04-28 06:29:13 -07004
George Liudf9a6d32020-12-22 16:27:16 +08005test_sources = [
6 '../../common/utils.cpp',
George Liu682ee182020-12-25 15:24:33 +08007 '../custom_dbus.cpp',
George Liudf9a6d32020-12-22 16:27:16 +08008]
9
Tom Joseph53279882021-04-28 06:29:13 -070010tests = [
11 'dbus_to_host_effecter_test',
George Liudf9a6d32020-12-22 16:27:16 +080012 'utils_test',
George Liu682ee182020-12-25 15:24:33 +080013 'custom_dbus_test',
Tom Joseph53279882021-04-28 06:29:13 -070014]
15
16foreach t : tests
17 test(t, executable(t.underscorify(), t + '.cpp',
George Liudf9a6d32020-12-22 16:27:16 +080018 test_sources,
Tom Joseph53279882021-04-28 06:29:13 -070019 implicit_include_directories: false,
20 link_args: dynamic_linker,
Patrick Williams87bfacd2023-11-29 06:44:36 -060021 build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
Tom Joseph53279882021-04-28 06:29:13 -070022 dependencies: [
23 gtest,
24 gmock,
25 host_bmc_test_src,
26 libpldm_dep,
27 libpldmutils,
Patrick Williamscf772842023-12-07 14:39:52 -060028 nlohmann_json_dep,
Tom Joseph53279882021-04-28 06:29:13 -070029 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -060030 phosphor_logging_dep,
Sampa Misrac0c79482021-06-02 08:01:54 -050031 sdbusplus,
32 sdeventplus]),
Tom Joseph53279882021-04-28 06:29:13 -070033 workdir: meson.current_source_dir())
34endforeach