From 8cc9dc6977009c6b876edfb3aa9ccf4b7a030d0c 2019-10-28 08:58:43 From: Alexis Jeandet Date: 2019-10-28 08:58:43 Subject: [PATCH] Made TeamCity output format optional for tests Signed-off-by: Alexis Jeandet --- diff --git a/tests/meson.build b/tests/meson.build index 1863666..b4b8399 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -76,6 +76,12 @@ foreach unit_test : tests dependencies : unit_test['deps'], 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