xref: /openbmc/pldm/fw-update/test/meson.build (revision 75356c1a)
1fw_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
27