Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 1 | tests = [ |
| 2 | 'handler_test', |
| 3 | 'request_test', |
| 4 | ] |
| 5 | |
| 6 | foreach t : tests |
| 7 | test(t, executable(t.underscorify(), t + '.cpp', |
| 8 | implicit_include_directories: false, |
Andrew Jeffery | 7c1dc7e | 2023-04-28 14:52:16 +0930 | [diff] [blame] | 9 | include_directories: [ '../../', '../../pldmd' ], |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 10 | link_args: dynamic_linker, |
| 11 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 12 | dependencies: [ |
| 13 | gtest, |
| 14 | gmock, |
| 15 | libpldm_dep, |
Brad Bishop | d169dd1 | 2021-07-29 13:24:15 -0400 | [diff] [blame] | 16 | nlohmann_json, |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 17 | phosphor_dbus_interfaces, |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 18 | phosphor_logging_dep, |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 19 | sdbusplus, |
| 20 | sdeventplus, |
Andrew Jeffery | 7c1dc7e | 2023-04-28 14:52:16 +0930 | [diff] [blame] | 21 | ]), |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 22 | workdir: meson.current_source_dir()) |
| 23 | endforeach |