xref: /openbmc/pldm/fw-update/test/meson.build (revision b3b84b49)
1fw_update_test_src = declare_dependency(
2    sources: [
3        '../activation.cpp',
4        '../inventory_manager.cpp',
5        '../package_parser.cpp',
6        '../device_updater.cpp',
7        '../update_manager.cpp',
8        '../../common/utils.cpp',
9    ],
10)
11
12tests = ['inventory_manager_test', 'package_parser_test', 'device_updater_test']
13
14foreach t : tests
15    test(
16        t,
17        executable(
18            t.underscorify(),
19            t + '.cpp',
20            implicit_include_directories: false,
21            include_directories: '../../pldmd',
22            dependencies: [
23                fw_update_test_src,
24                gmock,
25                gtest,
26                libpldm_dep,
27                libpldmutils,
28                nlohmann_json_dep,
29                phosphor_dbus_interfaces,
30                phosphor_logging_dep,
31                sdbusplus,
32                sdeventplus,
33            ],
34        ),
35        workdir: meson.current_source_dir(),
36    )
37endforeach
38