blob: 6db6b88dbd40837471b6d7cbc1a50370eecb4f31 [file] [log] [blame]
phosphor_regulators_tests_include_directories = include_directories(
'.',
'actions'
)
phosphor_regulators_tests_source_files = [
'device_tests.cpp',
'id_map_tests.cpp',
'rail_tests.cpp',
'rule_tests.cpp',
'actions/action_environment_tests.cpp',
'actions/action_utils_tests.cpp',
'actions/and_action_tests.cpp',
'actions/if_action_tests.cpp',
'actions/not_action_tests.cpp',
'actions/or_action_tests.cpp',
'actions/run_rule_action_tests.cpp',
'actions/set_device_action_tests.cpp'
]
test('phosphor-regulators-tests',
executable('phosphor-regulators-tests',
phosphor_regulators_tests_source_files,
dependencies: [
gmock,
gtest,
],
link_with: [
phosphor_regulators_library,
libi2c_dev_mock
],
implicit_include_directories: false,
include_directories: [
phosphor_regulators_include_directories,
phosphor_regulators_tests_include_directories,
libi2c_inc,
libi2c_dev_mock_inc
]
)
)