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', |
| 13 | 'actions/set_device_action_tests.cpp' |
| 14 | ] |
| 15 | |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 16 | test('phosphor-regulators-tests', |
| 17 | executable('phosphor-regulators-tests', |
Shawn McCarney | 6b2ebaf | 2019-11-04 12:12:19 -0600 | [diff] [blame^] | 18 | phosphor_regulators_tests_source_files, |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 19 | dependencies: [ |
| 20 | gmock, |
| 21 | gtest, |
| 22 | ], |
| 23 | implicit_include_directories: false, |
Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 24 | include_directories: [ |
| 25 | phosphor_regulators_include_directories, |
| 26 | phosphor_regulators_tests_include_directories |
| 27 | ] |
Shawn McCarney | a2461b3 | 2019-10-24 18:53:01 -0500 | [diff] [blame] | 28 | ) |
| 29 | ) |