tests: Don't install runner scripts without installed_tests

Fixes: 9f18bb625811f649e5363d65dc6b4390f92d37b7
This commit is contained in:
Jan Alexander Steffens (heftig) 2025-03-05 22:13:12 +01:00
parent 05da47c2d0
commit e661684c13
No known key found for this signature in database
GPG Key ID: B8AC08600F108CDF

View File

@ -2,14 +2,16 @@
# Copyright 2025 Simon McVittie # Copyright 2025 Simon McVittie
# SPDX-License-Identifier: LGPL-2.1-or-later # SPDX-License-Identifier: LGPL-2.1-or-later
install_data( if installed_tests_enabled
files( install_data(
'taptestrunner.py', files(
'testprogramrunner.py', 'taptestrunner.py',
), 'testprogramrunner.py',
install_dir: installed_tests_execdir, ),
install_tag: 'tests', install_dir: installed_tests_execdir,
) install_tag: 'tests',
)
endif
tests_conf = configuration_data() tests_conf = configuration_data()
tests_conf.set('gir_suffix', gir_suffix) tests_conf.set('gir_suffix', gir_suffix)