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, |
| 20 | phosphor_dbus_interfaces, |
| 21 | sdbusplus, |
| 22 | sdeventplus, |
| 23 | test_src]), |
| 24 | workdir: meson.current_source_dir()) |
| 25 | endforeach |