Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame^] | 1 | phosphor_fan_monitor_test_include_directories = include_directories( |
| 2 | '../..' |
| 3 | ) |
| 4 | |
| 5 | test_deps=[ |
| 6 | fmt_dep, |
| 7 | gmock_dep, |
| 8 | gtest_dep, |
| 9 | json_dep, |
| 10 | phosphor_logging_dep, |
| 11 | sdeventplus_dep |
| 12 | ] |
| 13 | |
| 14 | test_sources=[ |
| 15 | files( |
| 16 | '../logging.cpp', |
| 17 | ) |
| 18 | ] |
| 19 | |
| 20 | test( |
| 21 | 'power_off_cause', |
| 22 | executable( |
| 23 | 'power_off_cause', |
| 24 | 'power_off_cause_test.cpp', |
| 25 | dependencies:test_deps, |
| 26 | implicit_include_directories: false, |
| 27 | include_directories: [phosphor_fan_monitor_test_include_directories] |
| 28 | ) |
| 29 | ) |
| 30 | |
| 31 | test( |
| 32 | 'power_off_rule_test', |
| 33 | executable( |
| 34 | 'power_off_rule_test', |
| 35 | sources:test_sources, |
| 36 | dependencies: test_deps, |
| 37 | implicit_include_directories: false, |
| 38 | include_directories: phosphor_fan_monitor_test_include_directories, |
| 39 | ) |
| 40 | ) |