blob: b4739d9f47880737b4d90168777dfd28b7032aab [file] [log] [blame]
Manojkiran Eda06fca442022-08-18 07:52:11 +05301pldmd_inc = include_directories('../')
Tom Joseph53279882021-04-28 06:29:13 -07002test_src = declare_dependency(
Manojkiran Eda06fca442022-08-18 07:52:11 +05303 include_directories:pldmd_inc)
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05004
5tests = [
Deepak Kodihallibc669f12019-11-28 08:52:07 -06006 'pldmd_registration_test',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05007]
8
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05009foreach t : tests
10 test(t, executable(t.underscorify(), t + '.cpp',
11 implicit_include_directories: false,
12 link_args: dynamic_linker,
Patrick Williams87bfacd2023-11-29 06:44:36 -060013 build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
Deepak Kodihalli4de4d002019-11-11 02:41:43 -060014 dependencies: [
Patrick Williams6f4479c2021-04-16 21:39:44 -050015 libpldm_dep,
Patrick Williamscf772842023-12-07 14:39:52 -060016 nlohmann_json_dep,
Deepak Kodihalli4de4d002019-11-11 02:41:43 -060017 gtest,
Tom Joseph53279882021-04-28 06:29:13 -070018 test_src]),
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050019 workdir: meson.current_source_dir())
20endforeach