blob: 328bacff2db9ed21c17334fd005026bab4b18c02 [file] [log] [blame]
Tom Joseph74f27c72021-05-16 07:58:53 -07001tests = [
2 'handler_test',
3 'request_test',
4]
5
6foreach t : tests
7 test(t, executable(t.underscorify(), t + '.cpp',
8 implicit_include_directories: false,
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +09309 include_directories: [ '../../', '../../pldmd' ],
Tom Joseph74f27c72021-05-16 07:58:53 -070010 link_args: dynamic_linker,
Patrick Williams87bfacd2023-11-29 06:44:36 -060011 build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
Tom Joseph74f27c72021-05-16 07:58:53 -070012 dependencies: [
13 gtest,
14 gmock,
15 libpldm_dep,
Patrick Williamscf772842023-12-07 14:39:52 -060016 nlohmann_json_dep,
Tom Joseph74f27c72021-05-16 07:58:53 -070017 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -060018 phosphor_logging_dep,
Tom Joseph74f27c72021-05-16 07:58:53 -070019 sdbusplus,
20 sdeventplus,
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +093021 ]),
Tom Joseph74f27c72021-05-16 07:58:53 -070022 workdir: meson.current_source_dir())
23endforeach