Manojkiran Eda | 06fca44 | 2022-08-18 07:52:11 +0530 | [diff] [blame] | 1 | pldmd_inc = include_directories('../') |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 2 | test_src = declare_dependency(include_directories: pldmd_inc) |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 3 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 4 | tests = ['pldmd_registration_test'] |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 5 | |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 6 | foreach t : tests |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 7 | test( |
| 8 | t, |
| 9 | executable( |
| 10 | t.underscorify(), |
| 11 | t + '.cpp', |
| 12 | implicit_include_directories: false, |
| 13 | dependencies: [libpldm_dep, nlohmann_json_dep, gtest, test_src], |
| 14 | ), |
| 15 | workdir: meson.current_source_dir(), |
| 16 | ) |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 17 | endforeach |