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', |
Gilbert Chen | de2a132 | 2022-05-24 15:35:21 +0100 | [diff] [blame] | 13 | 'platform_manager_test', |
Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 14 | ] |
| 15 | |
| 16 | foreach t : tests |
| 17 | test(t, executable(t.underscorify(), t + '.cpp', |
| 18 | implicit_include_directories: false, |
| 19 | dependencies: [ |
| 20 | gtest, |
| 21 | gmock, |
| 22 | libpldm_dep, |
| 23 | libpldmutils, |
| 24 | nlohmann_json_dep, |
| 25 | phosphor_dbus_interfaces, |
| 26 | phosphor_logging_dep, |
| 27 | sdbusplus, |
| 28 | sdeventplus, |
| 29 | test_src]), |
| 30 | workdir: meson.current_source_dir()) |
| 31 | endforeach |