blob: 175ac066f5f398167bbb7131ee858cf7f3276564 [file] [log] [blame]
Shawn McCarney623f5a82019-11-03 08:55:40 -06001phosphor_regulators_tests_include_directories = include_directories(
2 '.',
3 'actions'
4)
5
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -06006phosphor_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 McCarney78488f62019-11-05 15:29:54 -060013 'actions/action_utils_tests.cpp',
Shawn McCarney74538a62019-11-13 11:24:17 -060014 'actions/and_action_tests.cpp',
Shawn McCarney6aac4142019-11-12 19:47:13 -060015 'actions/not_action_tests.cpp',
Shawn McCarney2134ca62019-11-11 13:06:18 -060016 'actions/run_rule_action_tests.cpp',
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -060017 'actions/set_device_action_tests.cpp'
18]
19
Shawn McCarneya2461b32019-10-24 18:53:01 -050020test('phosphor-regulators-tests',
21 executable('phosphor-regulators-tests',
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -060022 phosphor_regulators_tests_source_files,
Shawn McCarneya2461b32019-10-24 18:53:01 -050023 dependencies: [
24 gmock,
25 gtest,
26 ],
Shawn McCarney494ef032019-11-07 15:56:50 -060027 link_with: phosphor_regulators_library,
Shawn McCarneya2461b32019-10-24 18:53:01 -050028 implicit_include_directories: false,
Shawn McCarney623f5a82019-11-03 08:55:40 -060029 include_directories: [
30 phosphor_regulators_include_directories,
31 phosphor_regulators_tests_include_directories
32 ]
Shawn McCarneya2461b32019-10-24 18:53:01 -050033 )
34)