1test(
2    'test_version',
3    executable(
4        'test_version',
5        'test_version.cpp',
6        '../version.cpp',
7        dependencies: [
8            gtest,
9            phosphor_logging,
10        ],
11        implicit_include_directories: false,
12        include_directories: libpower_inc,
13        link_args: dynamic_linker,
14        build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
15        link_with: [
16            libpower,
17        ],
18        objects: record_manager,
19    )
20)
21
22test(
23    'test_updater',
24    executable(
25        'test_updater',
26        'test_updater.cpp',
27        '../updater.cpp',
28        dependencies: [
29            gtest,
30            gmock,
31            phosphor_logging,
32        ],
33        implicit_include_directories: false,
34        include_directories: [
35            libpower_inc,
36            libi2c_inc,
37            libi2c_dev_mock_inc
38        ],
39        link_args: dynamic_linker,
40        build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
41        link_with: [
42            libpower,
43            libi2c_dev_mock
44        ],
45        objects: record_manager,
46    )
47)
48