blob: aee5f7b2a6166a791840a4f2752cd2fe434eb7ce [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001test_src = declare_dependency(
Pavithra Barithaya51efaf82020-04-02 02:42:27 -05002 sources: [
Tom Joseph53279882021-04-28 06:29:13 -07003 '../pldmd/instance_id.cpp'])
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05004
5tests = [
Deepak Kodihalli4de4d002019-11-11 02:41:43 -06006 'pldmd_instanceid_test',
Deepak Kodihallibc669f12019-11-28 08:52:07 -06007 'pldmd_registration_test',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05008]
9
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050010foreach t : tests
11 test(t, executable(t.underscorify(), t + '.cpp',
12 implicit_include_directories: false,
13 link_args: dynamic_linker,
14 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
Deepak Kodihalli4de4d002019-11-11 02:41:43 -060015 dependencies: [
Patrick Williams6f4479c2021-04-16 21:39:44 -050016 libpldm_dep,
Brad Bishopd169dd12021-07-29 13:24:15 -040017 nlohmann_json,
Deepak Kodihalli4de4d002019-11-11 02:41:43 -060018 gtest,
Tom Joseph53279882021-04-28 06:29:13 -070019 test_src]),
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050020 workdir: meson.current_source_dir())
21endforeach