Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 1 | common_test_src = declare_dependency( |
| 2 | sources: [ |
| 3 | '../utils.cpp']) |
| 4 | |
| 5 | tests = [ |
| 6 | 'pldm_utils_test', |
| 7 | ] |
| 8 | |
| 9 | foreach t : tests |
| 10 | test(t, executable(t.underscorify(), t + '.cpp', |
| 11 | implicit_include_directories: false, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 12 | dependencies: [ |
| 13 | common_test_src, |
Andrew Jeffery | 3d3e818 | 2024-06-19 08:03:29 +0000 | [diff] [blame] | 14 | gmock, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 15 | gtest, |
| 16 | libpldm_dep, |
Patrick Williams | cf77284 | 2023-12-07 14:39:52 -0600 | [diff] [blame] | 17 | nlohmann_json_dep, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 18 | phosphor_dbus_interfaces, |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 19 | phosphor_logging_dep, |
Manojkiran Eda | 06fca44 | 2022-08-18 07:52:11 +0530 | [diff] [blame] | 20 | libpldmutils, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 21 | sdbusplus]), |
| 22 | workdir: meson.current_source_dir()) |
| 23 | endforeach |