1623f5a8cSShawn McCarneyphosphor_regulators_tests_include_directories = include_directories( 2623f5a8cSShawn McCarney '.', 3*516e22feSPatrick Williams 'actions', 4623f5a8cSShawn McCarney) 5623f5a8cSShawn McCarney 66b2ebaf7SShawn McCarneyphosphor_regulators_tests_source_files = [ 78a3afd70SShawn McCarney 'chassis_tests.cpp', 879a0b10eSShawn McCarney 'config_file_parser_error_tests.cpp', 90e8c68abSShawn McCarney 'config_file_parser_tests.cpp', 10d3a8aab4SShawn McCarney 'configuration_tests.cpp', 11a2461b34SShawn McCarney 'device_tests.cpp', 1266332cd7SShawn McCarney 'error_history_tests.cpp', 13aaa4fddbSShawn McCarney 'error_logging_utils_tests.cpp', 1455f496c5SShawn McCarney 'exception_utils_tests.cpp', 15f3633f63SShawn McCarney 'ffdc_file_tests.cpp', 163daeb919SShawn McCarney 'id_map_tests.cpp', 179284c307SShawn McCarney 'phase_fault_detection_tests.cpp', 18421128efSShawn McCarney 'phase_fault_tests.cpp', 19a5ef5409SShawn McCarney 'pmbus_error_tests.cpp', 206663abf3SShawn McCarney 'pmbus_utils_tests.cpp', 21bfe2c25aSShawn McCarney 'presence_detection_tests.cpp', 22a2461b34SShawn McCarney 'rail_tests.cpp', 23a2461b34SShawn McCarney 'rule_tests.cpp', 24bc47c1b6SShawn McCarney 'sensor_monitoring_tests.cpp', 250a450197SShawn McCarney 'sensors_tests.cpp', 26c3991f16SShawn McCarney 'system_tests.cpp', 27a5ef5409SShawn McCarney 'write_verification_error_tests.cpp', 286b2ebaf7SShawn McCarney 'actions/action_environment_tests.cpp', 298f0d1428SShawn McCarney 'actions/action_error_tests.cpp', 3078488f61SShawn McCarney 'actions/action_utils_tests.cpp', 3174538a6dSShawn McCarney 'actions/and_action_tests.cpp', 3207301eacSBob King 'actions/compare_presence_action_tests.cpp', 338e4cb645SBob King 'actions/compare_vpd_action_tests.cpp', 34b38da99fSShawn McCarney 'actions/i2c_action_tests.cpp', 353b242b72SShawn McCarney 'actions/i2c_capture_bytes_action_tests.cpp', 368215be3fSShawn McCarney 'actions/i2c_compare_bit_action_tests.cpp', 37b38da99fSShawn McCarney 'actions/i2c_compare_byte_action_tests.cpp', 385ad53945SShawn McCarney 'actions/i2c_compare_bytes_action_tests.cpp', 3988d5b698SShawn McCarney 'actions/i2c_write_bit_action_tests.cpp', 40f1c9061cSShawn McCarney 'actions/i2c_write_byte_action_tests.cpp', 4183169bfeSShawn McCarney 'actions/i2c_write_bytes_action_tests.cpp', 426d597737SShawn McCarney 'actions/if_action_tests.cpp', 43fa23f7d1SShawn McCarney 'actions/log_phase_fault_action_tests.cpp', 446aac4148SShawn McCarney 'actions/not_action_tests.cpp', 45d3bbfe29SShawn McCarney 'actions/or_action_tests.cpp', 46d6820bb8SBob King 'actions/pmbus_read_sensor_action_tests.cpp', 47a8119f26SShawn McCarney 'actions/pmbus_write_vout_command_action_tests.cpp', 482134ca66SShawn McCarney 'actions/run_rule_action_tests.cpp', 49*516e22feSPatrick Williams 'actions/set_device_action_tests.cpp', 506b2ebaf7SShawn McCarney] 516b2ebaf7SShawn McCarney 52df42c0d6SShawn McCarney# Long-running tests that are excluded from CI 535c6a693eSPatrick Williamsif get_option('long-tests').allowed() 54df42c0d6SShawn McCarney # This test requires the Python module 'jsonschema' 55e85499b6SShawn McCarney phosphor_regulators_tests_source_files += 'validate-regulators-config_tests.cpp' 56e85499b6SShawn McCarneyendif 57e85499b6SShawn McCarney 58*516e22feSPatrick Williamstest( 59*516e22feSPatrick Williams 'phosphor-regulators-tests', 60*516e22feSPatrick Williams executable( 61*516e22feSPatrick Williams 'phosphor-regulators-tests', 626b2ebaf7SShawn McCarney phosphor_regulators_tests_source_files, 63a2461b34SShawn McCarney dependencies: [ 64a2461b34SShawn McCarney gmock, 65a2461b34SShawn McCarney gtest, 66888bebdeSPatrick Williams nlohmann_json_dep, 67888bebdeSPatrick Williams phosphor_dbus_interfaces, 68888bebdeSPatrick Williams phosphor_logging, 69888bebdeSPatrick Williams sdbusplus, 70a2461b34SShawn McCarney ], 71dc8e9312SBrandon Wyman link_args: dynamic_linker, 725c6a693eSPatrick Williams build_rpath: get_option('oe-sdk').allowed() ? rpath : '', 73*516e22feSPatrick Williams link_with: [phosphor_regulators_library, libi2c_dev_mock, libpower], 74a2461b34SShawn McCarney implicit_include_directories: false, 75623f5a8cSShawn McCarney include_directories: [ 76623f5a8cSShawn McCarney phosphor_regulators_include_directories, 77afb7fc3fSShawn McCarney phosphor_regulators_tests_include_directories, 78afb7fc3fSShawn McCarney libi2c_inc, 79*516e22feSPatrick Williams libi2c_dev_mock_inc, 80*516e22feSPatrick Williams ], 81a57e0814SBob King ), 82*516e22feSPatrick Williams timeout: 180, 83a2461b34SShawn McCarney) 84