Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 1 | common_test_src = declare_dependency(sources: ['../utils.cpp']) |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 2 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 3 | tests = ['pldm_utils_test'] |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 4 | |
| 5 | foreach t : tests |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 6 | test( |
| 7 | t, |
| 8 | executable( |
| 9 | t.underscorify(), |
| 10 | t + '.cpp', |
| 11 | implicit_include_directories: false, |
| 12 | dependencies: [ |
| 13 | common_test_src, |
| 14 | gmock, |
| 15 | gtest, |
| 16 | libpldm_dep, |
| 17 | nlohmann_json_dep, |
| 18 | phosphor_dbus_interfaces, |
| 19 | phosphor_logging_dep, |
| 20 | libpldmutils, |
| 21 | sdbusplus, |
| 22 | ], |
| 23 | ), |
| 24 | workdir: meson.current_source_dir(), |
| 25 | ) |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 26 | endforeach |