1phosphor_regulators_tests_include_directories = include_directories( 2 '.', 3 'actions' 4) 5 6phosphor_regulators_tests_source_files = [ 7 'configuration_tests.cpp', 8 'device_tests.cpp', 9 'id_map_tests.cpp', 10 'pmbus_error_tests.cpp', 11 'pmbus_utils_tests.cpp', 12 'presence_detection_tests.cpp', 13 'rail_tests.cpp', 14 'rule_tests.cpp', 15 'sensor_monitoring_tests.cpp', 16 'validate-regulators-config_tests.cpp', 17 'write_verification_error_tests.cpp', 18 19 'actions/action_environment_tests.cpp', 20 'actions/action_error_tests.cpp', 21 'actions/action_utils_tests.cpp', 22 'actions/and_action_tests.cpp', 23 'actions/i2c_action_tests.cpp', 24 'actions/i2c_compare_bit_action_tests.cpp', 25 'actions/i2c_compare_byte_action_tests.cpp', 26 'actions/i2c_compare_bytes_action_tests.cpp', 27 'actions/i2c_write_bit_action_tests.cpp', 28 'actions/i2c_write_byte_action_tests.cpp', 29 'actions/i2c_write_bytes_action_tests.cpp', 30 'actions/if_action_tests.cpp', 31 'actions/not_action_tests.cpp', 32 'actions/or_action_tests.cpp', 33 'actions/pmbus_write_vout_command_action_tests.cpp', 34 'actions/run_rule_action_tests.cpp', 35 'actions/set_device_action_tests.cpp' 36] 37 38test('phosphor-regulators-tests', 39 executable('phosphor-regulators-tests', 40 phosphor_regulators_tests_source_files, 41 dependencies: [ 42 gmock, 43 gtest, 44 ], 45 link_args: dynamic_linker, 46 build_rpath: get_option('oe-sdk').enabled() ? rpath : '', 47 link_with: [ 48 phosphor_regulators_library, 49 libi2c_dev_mock 50 ], 51 implicit_include_directories: false, 52 include_directories: [ 53 phosphor_regulators_include_directories, 54 phosphor_regulators_tests_include_directories, 55 libi2c_inc, 56 libi2c_dev_mock_inc 57 ] 58 ), 59 timeout : 90 60) 61