blob: 707bc83b4a5a51173248aa75f6fb6ec2c324f764 [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 McCarney8f0d1422020-02-02 15:54:47 -060013 'actions/action_error_tests.cpp',
Shawn McCarney78488f62019-11-05 15:29:54 -060014 'actions/action_utils_tests.cpp',
Shawn McCarney74538a62019-11-13 11:24:17 -060015 'actions/and_action_tests.cpp',
Shawn McCarneyb38da992020-02-13 08:55:46 -060016 'actions/i2c_action_tests.cpp',
Shawn McCarney8215be32020-02-19 10:00:57 -060017 'actions/i2c_compare_bit_action_tests.cpp',
Shawn McCarneyb38da992020-02-13 08:55:46 -060018 'actions/i2c_compare_byte_action_tests.cpp',
Shawn McCarney5ad53942020-02-20 09:33:55 -060019 'actions/i2c_compare_bytes_action_tests.cpp',
Shawn McCarney88d5b692020-02-25 10:39:02 -060020 'actions/i2c_write_bit_action_tests.cpp',
Shawn McCarneyf1c90612020-02-24 09:56:53 -060021 'actions/i2c_write_byte_action_tests.cpp',
Shawn McCarney83169bf2020-02-24 15:59:34 -060022 'actions/i2c_write_bytes_action_tests.cpp',
Shawn McCarney6d597732019-11-13 17:40:07 -060023 'actions/if_action_tests.cpp',
Shawn McCarney6aac4142019-11-12 19:47:13 -060024 'actions/not_action_tests.cpp',
Shawn McCarneyd3bbfe22019-11-13 13:53:20 -060025 'actions/or_action_tests.cpp',
Shawn McCarney2134ca62019-11-11 13:06:18 -060026 'actions/run_rule_action_tests.cpp',
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -060027 'actions/set_device_action_tests.cpp'
28]
29
Shawn McCarneya2461b32019-10-24 18:53:01 -050030test('phosphor-regulators-tests',
31 executable('phosphor-regulators-tests',
Shawn McCarney6b2ebaf2019-11-04 12:12:19 -060032 phosphor_regulators_tests_source_files,
Shawn McCarneya2461b32019-10-24 18:53:01 -050033 dependencies: [
34 gmock,
35 gtest,
36 ],
Brandon Wymandc8e9312020-02-14 17:04:18 -060037 link_args: dynamic_linker,
38 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060039 link_with: [
40 phosphor_regulators_library,
41 libi2c_dev_mock
42 ],
Shawn McCarneya2461b32019-10-24 18:53:01 -050043 implicit_include_directories: false,
Shawn McCarney623f5a82019-11-03 08:55:40 -060044 include_directories: [
45 phosphor_regulators_include_directories,
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060046 phosphor_regulators_tests_include_directories,
47 libi2c_inc,
48 libi2c_dev_mock_inc
Shawn McCarney623f5a82019-11-03 08:55:40 -060049 ]
Shawn McCarneya2461b32019-10-24 18:53:01 -050050 )
51)