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=[ |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 6 | gmock_dep, |
| 7 | gtest_dep, |
Patrick Williams | ef17a25 | 2023-12-07 14:53:06 -0600 | [diff] [blame^] | 8 | nlohmann_json_dep, |
Mike Capps | a081956 | 2022-06-13 10:17:10 -0400 | [diff] [blame] | 9 | phosphor_logging_dep, |
| 10 | sdeventplus_dep |
| 11 | ] |
| 12 | |
| 13 | test_sources=[ |
| 14 | files( |
| 15 | '../logging.cpp', |
| 16 | ) |
| 17 | ] |
| 18 | |
| 19 | test( |
| 20 | 'power_off_cause', |
| 21 | executable( |
| 22 | 'power_off_cause', |
| 23 | 'power_off_cause_test.cpp', |
| 24 | dependencies:test_deps, |
| 25 | implicit_include_directories: false, |
| 26 | include_directories: [phosphor_fan_monitor_test_include_directories] |
| 27 | ) |
| 28 | ) |
| 29 | |
| 30 | test( |
| 31 | 'power_off_rule_test', |
| 32 | executable( |
| 33 | 'power_off_rule_test', |
| 34 | sources:test_sources, |
| 35 | dependencies: test_deps, |
| 36 | implicit_include_directories: false, |
| 37 | include_directories: phosphor_fan_monitor_test_include_directories, |
| 38 | ) |
| 39 | ) |