blob: 51faaef91491a4375d0d1df588ed0d9149a2f68e [file] [log] [blame]
Mike Cappsa0819562022-06-13 10:17:10 -04001phosphor_fan_monitor_test_include_directories = include_directories(
2 '../..'
3)
4
5test_deps=[
Mike Cappsa0819562022-06-13 10:17:10 -04006 gmock_dep,
7 gtest_dep,
Patrick Williamsef17a252023-12-07 14:53:06 -06008 nlohmann_json_dep,
Mike Cappsa0819562022-06-13 10:17:10 -04009 phosphor_logging_dep,
10 sdeventplus_dep
11]
12
13test_sources=[
14 files(
15 '../logging.cpp',
16 )
17]
18
19test(
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
30test(
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)