Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 1 | phosphor_regulators_tests_include_directories = include_directories( |
| 2 | '.', |
| 3 | 'actions' |
| 4 | ) |
| 5 | |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 6 | phosphor_regulators_tests_source_files = [ |
Shawn McCarney | 8a3afd7 | 2020-03-12 14:28:44 -0500 | [diff] [blame] | 7 | 'chassis_tests.cpp', |
Shawn McCarney | 79a0b10 | 2020-03-26 23:49:02 -0500 | [diff] [blame] | 8 | 'config_file_parser_error_tests.cpp', |
Shawn McCarney | 0e8c68a | 2020-03-27 01:44:48 -0500 | [diff] [blame] | 9 | 'config_file_parser_tests.cpp', |
Shawn McCarney | d3a8aab | 2020-03-10 10:30:02 -0500 | [diff] [blame] | 10 | 'configuration_tests.cpp', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 11 | 'device_tests.cpp', |
Shawn McCarney | 66332cd | 2020-07-13 19:14:18 -0500 | [diff] [blame] | 12 | 'error_history_tests.cpp', |
Shawn McCarney | aaa4fdd | 2021-03-18 19:32:37 -0500 | [diff] [blame] | 13 | 'error_logging_utils_tests.cpp', |
Shawn McCarney | 55f496c | 2020-04-09 16:19:14 -0500 | [diff] [blame] | 14 | 'exception_utils_tests.cpp', |
Shawn McCarney | f3633f6 | 2020-09-02 10:34:52 -0500 | [diff] [blame] | 15 | 'ffdc_file_tests.cpp', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 16 | 'id_map_tests.cpp', |
Shawn McCarney | 9284c30 | 2021-09-02 11:23:04 -0500 | [diff] [blame] | 17 | 'phase_fault_detection_tests.cpp', |
Shawn McCarney | 421128e | 2021-08-25 10:00:59 -0500 | [diff] [blame] | 18 | 'phase_fault_tests.cpp', |
Shawn McCarney | a5ef540 | 2020-03-01 16:29:44 -0600 | [diff] [blame] | 19 | 'pmbus_error_tests.cpp', |
Shawn McCarney | 6663abf | 2020-02-29 17:25:48 -0600 | [diff] [blame] | 20 | 'pmbus_utils_tests.cpp', |
Shawn McCarney | bfe2c25 | 2020-03-10 14:05:19 -0500 | [diff] [blame] | 21 | 'presence_detection_tests.cpp', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 22 | 'rail_tests.cpp', |
| 23 | 'rule_tests.cpp', |
Shawn McCarney | bc47c1b | 2020-03-10 15:38:07 -0500 | [diff] [blame] | 24 | 'sensor_monitoring_tests.cpp', |
Shawn McCarney | 0a45019 | 2021-04-12 16:13:24 -0500 | [diff] [blame] | 25 | 'sensors_tests.cpp', |
Shawn McCarney | c3991f1 | 2020-04-05 13:16:06 -0500 | [diff] [blame] | 26 | 'system_tests.cpp', |
Shawn McCarney | b6f07c9 | 2020-09-03 21:49:21 -0500 | [diff] [blame] | 27 | 'temporary_file_tests.cpp', |
Shawn McCarney | a5ef540 | 2020-03-01 16:29:44 -0600 | [diff] [blame] | 28 | 'write_verification_error_tests.cpp', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 29 | |
| 30 | 'actions/action_environment_tests.cpp', |
Shawn McCarney | 8f0d142 | 2020-02-02 15:54:47 -0600 | [diff] [blame] | 31 | 'actions/action_error_tests.cpp', |
Shawn McCarney | 78488f6 | 2019-11-05 15:29:54 -0600 | [diff] [blame] | 32 | 'actions/action_utils_tests.cpp', |
Shawn McCarney | 74538a6 | 2019-11-13 11:24:17 -0600 | [diff] [blame] | 33 | 'actions/and_action_tests.cpp', |
Bob King | 07301ea | 2020-04-21 17:22:23 +0800 | [diff] [blame] | 34 | 'actions/compare_presence_action_tests.cpp', |
Bob King | 8e4cb64 | 2020-04-24 13:18:53 +0800 | [diff] [blame] | 35 | 'actions/compare_vpd_action_tests.cpp', |
Shawn McCarney | b38da99 | 2020-02-13 08:55:46 -0600 | [diff] [blame] | 36 | 'actions/i2c_action_tests.cpp', |
Shawn McCarney | 3b242b7 | 2021-08-27 09:55:22 -0500 | [diff] [blame] | 37 | 'actions/i2c_capture_bytes_action_tests.cpp', |
Shawn McCarney | 8215be3 | 2020-02-19 10:00:57 -0600 | [diff] [blame] | 38 | 'actions/i2c_compare_bit_action_tests.cpp', |
Shawn McCarney | b38da99 | 2020-02-13 08:55:46 -0600 | [diff] [blame] | 39 | 'actions/i2c_compare_byte_action_tests.cpp', |
Shawn McCarney | 5ad5394 | 2020-02-20 09:33:55 -0600 | [diff] [blame] | 40 | 'actions/i2c_compare_bytes_action_tests.cpp', |
Shawn McCarney | 88d5b69 | 2020-02-25 10:39:02 -0600 | [diff] [blame] | 41 | 'actions/i2c_write_bit_action_tests.cpp', |
Shawn McCarney | f1c9061 | 2020-02-24 09:56:53 -0600 | [diff] [blame] | 42 | 'actions/i2c_write_byte_action_tests.cpp', |
Shawn McCarney | 83169bf | 2020-02-24 15:59:34 -0600 | [diff] [blame] | 43 | 'actions/i2c_write_bytes_action_tests.cpp', |
Shawn McCarney | 6d59773 | 2019-11-13 17:40:07 -0600 | [diff] [blame] | 44 | 'actions/if_action_tests.cpp', |
Shawn McCarney | fa23f7d | 2021-08-26 15:31:47 -0500 | [diff] [blame] | 45 | 'actions/log_phase_fault_action_tests.cpp', |
Shawn McCarney | 6aac414 | 2019-11-12 19:47:13 -0600 | [diff] [blame] | 46 | 'actions/not_action_tests.cpp', |
Shawn McCarney | d3bbfe2 | 2019-11-13 13:53:20 -0600 | [diff] [blame] | 47 | 'actions/or_action_tests.cpp', |
Bob King | d6820bb | 2020-04-28 15:37:02 +0800 | [diff] [blame] | 48 | 'actions/pmbus_read_sensor_action_tests.cpp', |
Shawn McCarney | a8119f2 | 2020-03-02 16:20:18 -0600 | [diff] [blame] | 49 | 'actions/pmbus_write_vout_command_action_tests.cpp', |
Shawn McCarney | 2134ca6 | 2019-11-11 13:06:18 -0600 | [diff] [blame] | 50 | 'actions/run_rule_action_tests.cpp', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 51 | 'actions/set_device_action_tests.cpp' |
| 52 | ] |
| 53 | |
Shawn McCarney | df42c0d | 2020-04-29 14:36:36 -0500 | [diff] [blame] | 54 | # Long-running tests that are excluded from CI |
| 55 | if get_option('long-tests').enabled() |
| 56 | # This test requires the Python module 'jsonschema' |
Shawn McCarney | e85499b | 2020-03-27 15:15:24 -0500 | [diff] [blame] | 57 | phosphor_regulators_tests_source_files += 'validate-regulators-config_tests.cpp' |
| 58 | endif |
| 59 | |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 60 | test('phosphor-regulators-tests', |
| 61 | executable('phosphor-regulators-tests', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 62 | phosphor_regulators_tests_source_files, |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 63 | dependencies: [ |
| 64 | gmock, |
| 65 | gtest, |
Shawn McCarney | 8109502 | 2020-07-16 14:22:26 -0500 | [diff] [blame] | 66 | sdbusplus |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 67 | ], |
Brandon Wyman | dc8e931 | 2020-02-14 17:04:18 -0600 | [diff] [blame] | 68 | link_args: dynamic_linker, |
| 69 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
Shawn McCarney | afb7fc3 | 2019-12-11 19:42:03 -0600 | [diff] [blame] | 70 | link_with: [ |
| 71 | phosphor_regulators_library, |
| 72 | libi2c_dev_mock |
| 73 | ], |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 74 | implicit_include_directories: false, |
Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 75 | include_directories: [ |
| 76 | phosphor_regulators_include_directories, |
Shawn McCarney | afb7fc3 | 2019-12-11 19:42:03 -0600 | [diff] [blame] | 77 | phosphor_regulators_tests_include_directories, |
| 78 | libi2c_inc, |
| 79 | libi2c_dev_mock_inc |
Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 80 | ] |
Bob King | a57e081 | 2020-03-12 10:47:42 +0800 | [diff] [blame] | 81 | ), |
Bob King | bafcb86 | 2020-03-31 16:39:00 +0800 | [diff] [blame] | 82 | timeout : 180 |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 83 | ) |