blob: 438ba199f1bb4a8125b537359987e7418ce52db2 [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,
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