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 = [ |
| 7 | 'device_tests.cpp', |
| 8 | 'id_map_tests.cpp', |
| 9 | 'rail_tests.cpp', |
| 10 | 'rule_tests.cpp', |
| 11 | |
| 12 | 'actions/action_environment_tests.cpp', |
Shawn McCarney | 8f0d142 | 2020-02-02 15:54:47 -0600 | [diff] [blame] | 13 | 'actions/action_error_tests.cpp', |
Shawn McCarney | 78488f6 | 2019-11-05 15:29:54 -0600 | [diff] [blame] | 14 | 'actions/action_utils_tests.cpp', |
Shawn McCarney | 74538a6 | 2019-11-13 11:24:17 -0600 | [diff] [blame] | 15 | 'actions/and_action_tests.cpp', |
Shawn McCarney | b38da99 | 2020-02-13 08:55:46 -0600 | [diff] [blame] | 16 | 'actions/i2c_action_tests.cpp', |
Shawn McCarney | 8215be3 | 2020-02-19 10:00:57 -0600 | [diff] [blame] | 17 | 'actions/i2c_compare_bit_action_tests.cpp', |
Shawn McCarney | b38da99 | 2020-02-13 08:55:46 -0600 | [diff] [blame] | 18 | 'actions/i2c_compare_byte_action_tests.cpp', |
Shawn McCarney | 6d59773 | 2019-11-13 17:40:07 -0600 | [diff] [blame] | 19 | 'actions/if_action_tests.cpp', |
Shawn McCarney | 6aac414 | 2019-11-12 19:47:13 -0600 | [diff] [blame] | 20 | 'actions/not_action_tests.cpp', |
Shawn McCarney | d3bbfe2 | 2019-11-13 13:53:20 -0600 | [diff] [blame] | 21 | 'actions/or_action_tests.cpp', |
Shawn McCarney | 2134ca6 | 2019-11-11 13:06:18 -0600 | [diff] [blame] | 22 | 'actions/run_rule_action_tests.cpp', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 23 | 'actions/set_device_action_tests.cpp' |
| 24 | ] |
| 25 | |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 26 | test('phosphor-regulators-tests', |
| 27 | executable('phosphor-regulators-tests', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 28 | phosphor_regulators_tests_source_files, |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 29 | dependencies: [ |
| 30 | gmock, |
| 31 | gtest, |
| 32 | ], |
Brandon Wyman | dc8e931 | 2020-02-14 17:04:18 -0600 | [diff] [blame] | 33 | link_args: dynamic_linker, |
| 34 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
Shawn McCarney | afb7fc3 | 2019-12-11 19:42:03 -0600 | [diff] [blame] | 35 | link_with: [ |
| 36 | phosphor_regulators_library, |
| 37 | libi2c_dev_mock |
| 38 | ], |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 39 | implicit_include_directories: false, |
Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 40 | include_directories: [ |
| 41 | phosphor_regulators_include_directories, |
Shawn McCarney | afb7fc3 | 2019-12-11 19:42:03 -0600 | [diff] [blame] | 42 | phosphor_regulators_tests_include_directories, |
| 43 | libi2c_inc, |
| 44 | libi2c_dev_mock_inc |
Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 45 | ] |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 46 | ) |
| 47 | ) |