Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 1 | test_src = declare_dependency( |
| 2 | sources: [ |
| 3 | '../terminus_manager.cpp', |
| 4 | '../terminus.cpp', |
| 5 | '../platform_manager.cpp', |
| 6 | '../manager.cpp', |
| 7 | '../../requester/mctp_endpoint_discovery.cpp'], |
| 8 | include_directories: ['../../requester', '../../pldmd']) |
| 9 | |
| 10 | tests = [ |
| 11 | 'terminus_manager_test', |
| 12 | 'terminus_test', |
| 13 | ] |
| 14 | |
| 15 | foreach t : tests |
| 16 | test(t, executable(t.underscorify(), t + '.cpp', |
| 17 | implicit_include_directories: false, |
| 18 | dependencies: [ |
| 19 | gtest, |
| 20 | gmock, |
| 21 | libpldm_dep, |
| 22 | libpldmutils, |
| 23 | nlohmann_json_dep, |
| 24 | phosphor_dbus_interfaces, |
| 25 | phosphor_logging_dep, |
| 26 | sdbusplus, |
| 27 | sdeventplus, |
| 28 | test_src]), |
| 29 | workdir: meson.current_source_dir()) |
| 30 | endforeach |