blob: d33febb1697d20ce4435f4c9cf8f7dcbbd1d24f3 [file] [log] [blame]
#################################################################################
# Enforce the test dependencies when tests are enabled
gtest = dependency(
'gtest',
main: true,
disabler: true,
required: get_option('tests'),
)
gmock = dependency('gmock', required: get_option('tests'))
##################################################################################
# declare the test sources
test_list = [
'TestBmcEpoch.cpp',
'TestManager.cpp',
'TestUtils.cpp',
'mocked_property_change_listener.hpp',
]
###################################################################################
# Run the tests
foreach tests : test_list
test_name = tests.split('.')[0]
test(
test_name,
executable(
test_name,
tests,
include_directories: ['.', '../'],
link_with: libtimemanager,
dependencies: [gtest, gmock] + deps,
),
)
endforeach