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', |
Gilbert Chen | eac61a4 | 2022-02-23 20:56:19 +0000 | [diff] [blame] | 7 | '../sensor_manager.cpp', |
Thu Nguyen | 3c5486d | 2024-08-01 08:03:08 +0000 | [diff] [blame] | 8 | '../numeric_sensor.cpp', |
Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 9 | '../../requester/mctp_endpoint_discovery.cpp'], |
| 10 | include_directories: ['../../requester', '../../pldmd']) |
| 11 | |
| 12 | tests = [ |
| 13 | 'terminus_manager_test', |
| 14 | 'terminus_test', |
Gilbert Chen | de2a132 | 2022-05-24 15:35:21 +0100 | [diff] [blame] | 15 | 'platform_manager_test', |
Gilbert Chen | eac61a4 | 2022-02-23 20:56:19 +0000 | [diff] [blame] | 16 | 'sensor_manager_test', |
| 17 | 'numeric_sensor_test', |
Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 18 | ] |
| 19 | |
| 20 | foreach t : tests |
| 21 | test(t, executable(t.underscorify(), t + '.cpp', |
| 22 | implicit_include_directories: false, |
| 23 | dependencies: [ |
| 24 | gtest, |
| 25 | gmock, |
| 26 | libpldm_dep, |
| 27 | libpldmutils, |
| 28 | nlohmann_json_dep, |
| 29 | phosphor_dbus_interfaces, |
| 30 | phosphor_logging_dep, |
| 31 | sdbusplus, |
| 32 | sdeventplus, |
| 33 | test_src]), |
| 34 | workdir: meson.current_source_dir()) |
| 35 | endforeach |