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