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', |
Gilbert Chen | 77e6fe7 | 2024-08-06 09:23:30 +0000 | [diff] [blame] | 9 | '../event_manager.cpp', |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 10 | '../../requester/mctp_endpoint_discovery.cpp', |
| 11 | ], |
| 12 | include_directories: ['../../requester', '../../pldmd'], |
| 13 | ) |
Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 14 | |
| 15 | tests = [ |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 16 | 'terminus_manager_test', |
| 17 | 'terminus_test', |
| 18 | 'platform_manager_test', |
| 19 | 'sensor_manager_test', |
| 20 | 'numeric_sensor_test', |
Gilbert Chen | 77e6fe7 | 2024-08-06 09:23:30 +0000 | [diff] [blame] | 21 | 'event_manager_test', |
Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 22 | ] |
| 23 | |
| 24 | foreach t : tests |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 25 | test( |
| 26 | t, |
| 27 | executable( |
| 28 | t.underscorify(), |
| 29 | t + '.cpp', |
| 30 | implicit_include_directories: false, |
| 31 | dependencies: [ |
| 32 | gtest, |
| 33 | gmock, |
| 34 | libpldm_dep, |
| 35 | libpldmutils, |
| 36 | nlohmann_json_dep, |
| 37 | phosphor_dbus_interfaces, |
| 38 | phosphor_logging_dep, |
| 39 | sdbusplus, |
| 40 | sdeventplus, |
| 41 | test_src, |
| 42 | ], |
| 43 | ), |
| 44 | workdir: meson.current_source_dir(), |
| 45 | ) |
Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame] | 46 | endforeach |