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