blob: d19d4ef99136f2babaace9d5190cc7f9018287d5 [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',
7]
8
Tom Joseph53279882021-04-28 06:29:13 -07009tests = [
10 'dbus_to_host_effecter_test',
George Liudf9a6d32020-12-22 16:27:16 +080011 'utils_test',
Tom Joseph53279882021-04-28 06:29:13 -070012]
13
14foreach t : tests
15 test(t, executable(t.underscorify(), t + '.cpp',
George Liudf9a6d32020-12-22 16:27:16 +080016 test_sources,
Tom Joseph53279882021-04-28 06:29:13 -070017 implicit_include_directories: false,
18 link_args: dynamic_linker,
19 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
20 dependencies: [
21 gtest,
22 gmock,
23 host_bmc_test_src,
24 libpldm_dep,
25 libpldmutils,
Brad Bishopd169dd12021-07-29 13:24:15 -040026 nlohmann_json,
Tom Joseph53279882021-04-28 06:29:13 -070027 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -060028 phosphor_logging_dep,
Sampa Misrac0c79482021-06-02 08:01:54 -050029 sdbusplus,
30 sdeventplus]),
Tom Joseph53279882021-04-28 06:29:13 -070031 workdir: meson.current_source_dir())
32endforeach