1#################################################################################
2# Enforce the test dependencies when tests are enabled
3gtest          =        dependency('gtest', main: true, disabler: true,required : get_option('tests'))
4gmock          =        dependency('gmock',required : get_option('tests'))
5
6##################################################################################
7# declare the test sources
8test_list = [
9  'TestBmcEpoch.cpp',
10  'TestManager.cpp',
11  'TestUtils.cpp',
12  'mocked_property_change_listener.hpp',
13]
14
15###################################################################################
16# Run the tests
17foreach tests:test_list
18  test_name = tests.split('.')[0]
19  test(test_name,
20       executable(test_name,tests,
21                 include_directories : ['.','../'],
22                 link_with : libtimemanager,
23                 dependencies : [ gtest,
24                                  gmock,
25                                ] + deps))
26endforeach
27
28