xref: /openbmc/pldm/fw-update/test/meson.build (revision 1630f399)
1fw_update_test_src = declare_dependency(
2          sources: [
3            '../inventory_manager.cpp',
4            '../package_parser.cpp',
5            '../../common/utils.cpp',
6            '../../pldmd/dbus_impl_requester.cpp',
7            '../../pldmd/instance_id.cpp'])
8
9tests = [
10  'inventory_manager_test',
11  'package_parser_test',
12]
13
14foreach t : tests
15  test(t, executable(t.underscorify(), t + '.cpp',
16                     implicit_include_directories: false,
17                     link_args: dynamic_linker,
18                     build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
19                     dependencies: [
20                         fw_update_test_src,
21                         gtest,
22                         libpldm_dep,
23                         nlohmann_json,
24                         phosphor_dbus_interfaces,
25                         sdbusplus,
26                         sdeventplus]),
27       workdir: meson.current_source_dir())
28endforeach
29