blob: 08634a94c5f5eeac3ddf366bc551eff619df7424 [file] [log] [blame]
Shawn McCarney623f5a82019-11-03 08:55:40 -06001phosphor_regulators_tests_include_directories = include_directories(
2 '.',
3 'actions'
4)
5
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -06006phosphor_regulators_tests_source_files = [
Shawn McCarney8a3afd72020-03-12 14:28:44 -05007 'chassis_tests.cpp',
Shawn McCarneyd3a8aab2020-03-10 10:30:02 -05008 'configuration_tests.cpp',
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -06009 'device_tests.cpp',
10 'id_map_tests.cpp',
Shawn McCarneya5ef5402020-03-01 16:29:44 -060011 'pmbus_error_tests.cpp',
Shawn McCarney6663abf2020-02-29 17:25:48 -060012 'pmbus_utils_tests.cpp',
Shawn McCarneybfe2c252020-03-10 14:05:19 -050013 'presence_detection_tests.cpp',
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -060014 'rail_tests.cpp',
15 'rule_tests.cpp',
Shawn McCarneybc47c1b2020-03-10 15:38:07 -050016 'sensor_monitoring_tests.cpp',
Bob Kinga57e0812020-03-12 10:47:42 +080017 'validate-regulators-config_tests.cpp',
Shawn McCarneya5ef5402020-03-01 16:29:44 -060018 'write_verification_error_tests.cpp',
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -060019
20 'actions/action_environment_tests.cpp',
Shawn McCarney8f0d1422020-02-02 15:54:47 -060021 'actions/action_error_tests.cpp',
Shawn McCarney78488f62019-11-05 15:29:54 -060022 'actions/action_utils_tests.cpp',
Shawn McCarney74538a62019-11-13 11:24:17 -060023 'actions/and_action_tests.cpp',
Shawn McCarneyb38da992020-02-13 08:55:46 -060024 'actions/i2c_action_tests.cpp',
Shawn McCarney8215be32020-02-19 10:00:57 -060025 'actions/i2c_compare_bit_action_tests.cpp',
Shawn McCarneyb38da992020-02-13 08:55:46 -060026 'actions/i2c_compare_byte_action_tests.cpp',
Shawn McCarney5ad53942020-02-20 09:33:55 -060027 'actions/i2c_compare_bytes_action_tests.cpp',
Shawn McCarney88d5b692020-02-25 10:39:02 -060028 'actions/i2c_write_bit_action_tests.cpp',
Shawn McCarneyf1c90612020-02-24 09:56:53 -060029 'actions/i2c_write_byte_action_tests.cpp',
Shawn McCarney83169bf2020-02-24 15:59:34 -060030 'actions/i2c_write_bytes_action_tests.cpp',
Shawn McCarney6d597732019-11-13 17:40:07 -060031 'actions/if_action_tests.cpp',
Shawn McCarney6aac4142019-11-12 19:47:13 -060032 'actions/not_action_tests.cpp',
Shawn McCarneyd3bbfe22019-11-13 13:53:20 -060033 'actions/or_action_tests.cpp',
Shawn McCarneya8119f22020-03-02 16:20:18 -060034 'actions/pmbus_write_vout_command_action_tests.cpp',
Shawn McCarney2134ca62019-11-11 13:06:18 -060035 'actions/run_rule_action_tests.cpp',
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -060036 'actions/set_device_action_tests.cpp'
37]
38
Shawn McCarneya2461b32019-10-24 18:53:01 -050039test('phosphor-regulators-tests',
40 executable('phosphor-regulators-tests',
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -060041 phosphor_regulators_tests_source_files,
Shawn McCarneya2461b32019-10-24 18:53:01 -050042 dependencies: [
43 gmock,
44 gtest,
45 ],
Brandon Wymandc8e9312020-02-14 17:04:18 -060046 link_args: dynamic_linker,
47 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060048 link_with: [
49 phosphor_regulators_library,
50 libi2c_dev_mock
51 ],
Shawn McCarneya2461b32019-10-24 18:53:01 -050052 implicit_include_directories: false,
Shawn McCarney623f5a82019-11-03 08:55:40 -060053 include_directories: [
54 phosphor_regulators_include_directories,
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060055 phosphor_regulators_tests_include_directories,
56 libi2c_inc,
57 libi2c_dev_mock_inc
Shawn McCarney623f5a82019-11-03 08:55:40 -060058 ]
Bob Kinga57e0812020-03-12 10:47:42 +080059 ),
Bob King3afa7112020-03-19 09:35:31 +080060 timeout : 150
Shawn McCarneya2461b32019-10-24 18:53:01 -050061)