blob: 04bbfdcc8bcb9ead94b6fceff5dc2c5ea57c6a43 [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(
Pavithra Barithaya51efaf82020-04-02 02:42:27 -05003 sources: [
Manojkiran Eda06fca442022-08-18 07:52:11 +05304 '../pldmd/instance_id.cpp'],
5 include_directories:pldmd_inc)
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05006
7tests = [
Deepak Kodihalli4de4d002019-11-11 02:41:43 -06008 'pldmd_instanceid_test',
Deepak Kodihallibc669f12019-11-28 08:52:07 -06009 'pldmd_registration_test',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050010]
11
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050012foreach t : tests
13 test(t, executable(t.underscorify(), t + '.cpp',
14 implicit_include_directories: false,
15 link_args: dynamic_linker,
16 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
Deepak Kodihalli4de4d002019-11-11 02:41:43 -060017 dependencies: [
Patrick Williams6f4479c2021-04-16 21:39:44 -050018 libpldm_dep,
Brad Bishopd169dd12021-07-29 13:24:15 -040019 nlohmann_json,
Deepak Kodihalli4de4d002019-11-11 02:41:43 -060020 gtest,
Tom Joseph53279882021-04-28 06:29:13 -070021 test_src]),
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050022 workdir: meson.current_source_dir())
23endforeach