Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 1 | test_src = declare_dependency( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 2 | sources: [ |
| 3 | '../terminus_manager.cpp', |
| 4 | '../terminus.cpp', |
| 5 | '../platform_manager.cpp', |
| 6 | '../manager.cpp', |
| 7 | '../sensor_manager.cpp', |
| 8 | '../numeric_sensor.cpp', |
| 9 | '../../requester/mctp_endpoint_discovery.cpp', |
| 10 | ], |
| 11 | include_directories: ['../../requester', '../../pldmd'], |
| 12 | ) |
Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 13 | |
| 14 | tests = [ |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 15 | 'terminus_manager_test', |
| 16 | 'terminus_test', |
| 17 | 'platform_manager_test', |
| 18 | 'sensor_manager_test', |
| 19 | 'numeric_sensor_test', |
Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 20 | ] |
| 21 | |
| 22 | foreach t : tests |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 23 | test( |
| 24 | t, |
| 25 | executable( |
| 26 | t.underscorify(), |
| 27 | t + '.cpp', |
| 28 | implicit_include_directories: false, |
| 29 | dependencies: [ |
| 30 | gtest, |
| 31 | gmock, |
| 32 | libpldm_dep, |
| 33 | libpldmutils, |
| 34 | nlohmann_json_dep, |
| 35 | phosphor_dbus_interfaces, |
| 36 | phosphor_logging_dep, |
| 37 | sdbusplus, |
| 38 | sdeventplus, |
| 39 | test_src, |
| 40 | ], |
| 41 | ), |
| 42 | workdir: meson.current_source_dir(), |
| 43 | ) |
Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 44 | endforeach |