xref: /openbmc/phosphor-power/tools/power-utils/test/meson.build (revision 8b38b177315d40f1f9bc1e4d0784d45ea17cbd5c)
1test(
2    'psutils-tests',
3    executable(
4        'psutils-tests',
5        'test_updater.cpp',
6        'test_utils.cpp',
7        'test_version.cpp',
8        '../updater.cpp',
9        '../aei_updater.cpp',
10        '../validator.cpp',
11        '../model.cpp',
12        '../utils.cpp',
13        '../version.cpp',
14        dependencies: [gtest, gmock, nlohmann_json_dep, phosphor_logging],
15        implicit_include_directories: false,
16        include_directories: [libpower_inc, libi2c_inc, libi2c_dev_mock_inc],
17        link_args: dynamic_linker,
18        build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
19        link_with: [libpower, libi2c_dev_mock],
20    ),
21)
22