##// END OF EJS Templates
Made TeamCity output format optional for tests...
Made TeamCity output format optional for tests Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1492:1a82cce7c74b
r1492:1a82cce7c74b
Show More
meson.build
30 lines | 1003 B | text/plain | TextLexer
tests_inc = include_directories(['GUITestUtils'])
tests = [
{
'name':'simple_graph',
'sources': ['simple_graph/main.cpp'],
'deps': [sciqlop_gui, qt5test, TestUtils_dep]
},
{
'name':'multiple_sync_graph',
'sources': ['multiple_sync_graph/main.cpp'],
'deps': [sciqlop_gui, qt5test, TestUtils_dep]
}
]
foreach unit_test : tests
test_moc_files = qt5.preprocess(moc_sources : unit_test['sources'])
test_exe = executable(unit_test['name'],unit_test['sources'] , test_moc_files,
dependencies : unit_test['deps'],
include_directories: tests_inc,
cpp_args : ['-DCORE_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/../tests-resources"']
)
if get_option('teamcity')
test_exe_args = ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test['name'])]
else
test_exe_args = []
endif
test('Test-' + unit_test['name'], test_exe, args: test_exe_args)
endforeach