From 1a82cce7c74bfcd64785cc5f9c43a4f7dede6d9b 2019-10-28 08:57:45 From: Alexis Jeandet Date: 2019-10-28 08:57:45 Subject: [PATCH] Made TeamCity output format optional for tests Signed-off-by: Alexis Jeandet --- diff --git a/gui/tests/meson.build b/gui/tests/meson.build index 40ac8ce..0cf2928 100644 --- a/gui/tests/meson.build +++ b/gui/tests/meson.build @@ -21,5 +21,10 @@ foreach unit_test : tests include_directories: tests_inc, cpp_args : ['-DCORE_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/../tests-resources"'] ) - test('Test-' + unit_test['name'], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test['name'])]) + 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 diff --git a/meson_options.txt b/meson_options.txt index 99becbd..a17b411 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1 +1,2 @@ option('biuld_gui_tests', type : 'boolean', value : true, description : 'Build GUI tests.') +option('teamcity', type : 'boolean', value : false, description : 'Enables TeamCity output format for tests.')