tests: only build when needed

Build the tests lazily, i.e., not before `meson test`. This helps with
build-times.
This commit is contained in:
Dirk-Jan C. Binnema
2025-08-15 21:01:05 +03:00
parent 0714873978
commit 34d3bf2e28
6 changed files with 53 additions and 6 deletions

View File

@ -1,4 +1,4 @@
## Copyright (C) 2024 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
## Copyright (C) 2025 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@ -27,6 +27,7 @@ if get_option('b_sanitize') == 'none'
executable('test-mu-guile',
'test-mu-guile.cc',
install: false,
build_by_default: false,
cpp_args: [
'-DABS_SRCDIR="' + meson.current_source_dir() + '"',
'-DGUILE_LOAD_PATH="' + guile_load_path + '"',