blob: e88466d1b29256f2f62e306b5c9b29dcf790fd22 [file] [log] [blame]
Tom Joseph75356c12021-06-20 03:52:40 -07001fw_update_test_src = declare_dependency(
2 sources: [
3 '../inventory_manager.cpp',
4 '../../common/utils.cpp',
5 '../../pldmd/dbus_impl_requester.cpp',
6 '../../pldmd/instance_id.cpp'])
7
8tests = [
9 'inventory_manager_test',
10]
11
12foreach 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 : '',
17 dependencies: [
18 fw_update_test_src,
19 gtest,
20 libpldm_dep,
21 nlohmann_json,
22 phosphor_dbus_interfaces,
23 sdbusplus,
24 sdeventplus]),
25 workdir: meson.current_source_dir())
26endforeach