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