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 | 78488f6 | 2019-11-05 15:29:54 -0600 | [diff] [blame] | 13 | 'actions/action_utils_tests.cpp', |
Shawn McCarney | 6aac414 | 2019-11-12 19:47:13 -0600 | [diff] [blame^] | 14 | 'actions/not_action_tests.cpp', |
Shawn McCarney | 2134ca6 | 2019-11-11 13:06:18 -0600 | [diff] [blame] | 15 | 'actions/run_rule_action_tests.cpp', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 16 | 'actions/set_device_action_tests.cpp' |
| 17 | ] |
| 18 | |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 19 | test('phosphor-regulators-tests', |
| 20 | executable('phosphor-regulators-tests', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame] | 21 | phosphor_regulators_tests_source_files, |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 22 | dependencies: [ |
| 23 | gmock, |
| 24 | gtest, |
| 25 | ], |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 26 | link_with: phosphor_regulators_library, |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 27 | implicit_include_directories: false, |
Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 28 | include_directories: [ |
| 29 | phosphor_regulators_include_directories, |
| 30 | phosphor_regulators_tests_include_directories |
| 31 | ] |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 32 | ) |
| 33 | ) |