From a83fcaec2e1462e3f970617bb3f57976565ede73 Mon Sep 17 00:00:00 2001 From: Martin Hostettler Date: Mon, 15 Apr 2024 22:39:24 +0200 Subject: [PATCH] src/meson.build: Run tests in verbose mode when supported. --- src/meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index 9339c50..f5dc450 100644 --- a/src/meson.build +++ b/src/meson.build @@ -106,9 +106,16 @@ executable('chr', main, link_with: editor_lib, dependencies : [qt5_dep, tuiwidgets_dep, posixsignalmanager_dep, syntax_dep]) +verbose_kwargs = {} +if meson.version().version_compare('>=0.62') + verbose_kwargs += {'verbose': true} +endif + tests_bin = executable('tests', tests, qt5.preprocess(moc_headers: tests_headers, moc_sources: tests, include_directories: include_directories('.')), link_with: editor_lib, dependencies : [qt5_dep, tuiwidgets_dep, posixsignalmanager_dep, syntax_dep, catch2_dep]) -test('tests', tests_bin, workdir: meson.current_build_dir()) +test('tests', tests_bin, + workdir: meson.current_build_dir(), + kwargs: verbose_kwargs)