blob: b7a929fa7c1358432414d70c804b3a8433ea9bf3 [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,
11 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
12 dependencies: [
13 gtest,
14 gmock,
15 libpldm_dep,
Brad Bishopd169dd12021-07-29 13:24:15 -040016 nlohmann_json,
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