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