Manojkiran Eda | 06fca44 | 2022-08-18 07:52:11 +0530 | [diff] [blame] | 1 | pldmd_inc = include_directories('../') |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 2 | test_src = declare_dependency( |
Manojkiran Eda | 06fca44 | 2022-08-18 07:52:11 +0530 | [diff] [blame] | 3 | include_directories:pldmd_inc) |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 4 | |
5 | tests = [ | ||||
Deepak Kodihalli | bc669f1 | 2019-11-28 08:52:07 -0600 | [diff] [blame] | 6 | 'pldmd_registration_test', |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 7 | ] |
8 | |||||
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 9 | foreach t : tests |
10 | test(t, executable(t.underscorify(), t + '.cpp', | ||||
11 | implicit_include_directories: false, | ||||
Deepak Kodihalli | 4de4d00 | 2019-11-11 02:41:43 -0600 | [diff] [blame] | 12 | dependencies: [ |
Patrick Williams | 6f4479c | 2021-04-16 21:39:44 -0500 | [diff] [blame] | 13 | libpldm_dep, |
Patrick Williams | cf77284 | 2023-12-07 14:39:52 -0600 | [diff] [blame] | 14 | nlohmann_json_dep, |
Deepak Kodihalli | 4de4d00 | 2019-11-11 02:41:43 -0600 | [diff] [blame] | 15 | gtest, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 16 | test_src]), |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 17 | workdir: meson.current_source_dir()) |
18 | endforeach |