blob: a08a9905955f573842b7cfa9282d30b5ce08c236 [file] [log] [blame]
Gilbert Chen44524a52022-02-14 12:12:25 +00001test_src = declare_dependency(
2 sources: [
3 '../mctp_endpoint_discovery.cpp',
4 '../../common/utils.cpp',
5 ])
6
Tom Joseph74f27c72021-05-16 07:58:53 -07007tests = [
8 'handler_test',
9 'request_test',
Gilbert Chen44524a52022-02-14 12:12:25 +000010 'mctp_endpoint_discovery_test',
Tom Joseph74f27c72021-05-16 07:58:53 -070011]
12
13foreach t : tests
14 test(t, executable(t.underscorify(), t + '.cpp',
15 implicit_include_directories: false,
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +093016 include_directories: [ '../../', '../../pldmd' ],
Tom Joseph74f27c72021-05-16 07:58:53 -070017 dependencies: [
18 gtest,
19 gmock,
20 libpldm_dep,
Patrick Williamscf772842023-12-07 14:39:52 -060021 nlohmann_json_dep,
Tom Joseph74f27c72021-05-16 07:58:53 -070022 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -060023 phosphor_logging_dep,
Tom Joseph74f27c72021-05-16 07:58:53 -070024 sdbusplus,
25 sdeventplus,
Gilbert Chen44524a52022-02-14 12:12:25 +000026 test_src,
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +093027 ]),
Tom Joseph74f27c72021-05-16 07:58:53 -070028 workdir: meson.current_source_dir())
29endforeach