Skip to content

Commit

Permalink
src/meson.build: Run tests in verbose mode when supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
textshell committed Apr 15, 2024
1 parent 75c5e4d commit a83fcae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a83fcae

Please sign in to comment.