meson: Set install_tag on installed tests files

This could be done automatically by Meson, this commit can be reverted
when we have that Meson PR in our CI:
https://github.com/mesonbuild/meson/pull/10829
This commit is contained in:
Xavier Claessens
2022-09-20 11:00:10 -04:00
parent b38d5a991f
commit c00df192ee
7 changed files with 79 additions and 9 deletions

View File

@@ -139,6 +139,7 @@ foreach test_name, extra_args : gobject_tests
input: installed_tests_template_tap,
output: test_name + '.test',
install_dir: installed_tests_metadir,
install_tag: 'tests',
configuration: test_conf
)
endif
@@ -147,6 +148,7 @@ foreach test_name, extra_args : gobject_tests
c_args : test_cargs + extra_args.get('c_args', []),
dependencies : test_deps + extra_args.get('dependencies', []),
install_dir: installed_tests_execdir,
install_tag: 'tests',
install: install,
)
@@ -175,6 +177,7 @@ foreach test_name : python_tests
install_data(
files(test_name),
install_dir: installed_tests_execdir,
install_tag: 'tests',
install_mode: 'rwxr-xr-x',
)
@@ -186,6 +189,7 @@ foreach test_name : python_tests
input: installed_tests_template_tap,
output: test_name + '.test',
install_dir: installed_tests_metadir,
install_tag: 'tests',
configuration: test_conf,
)
endif
@@ -196,5 +200,6 @@ if installed_tests_enabled
install_data(
files('taptestrunner.py'),
install_dir: installed_tests_execdir,
install_tag: 'tests',
)
endif

View File

@@ -26,6 +26,7 @@ foreach test_name, extra_args : gobject_tests
input: installed_tests_template,
output: test_name + '.test',
install_dir: installed_tests_metadir,
install_tag: 'tests',
configuration: test_conf,
)
endif
@@ -34,6 +35,7 @@ foreach test_name, extra_args : gobject_tests
c_args : test_cargs + extra_args.get('c_args', []),
dependencies : test_deps + extra_args.get('dependencies', []),
install_dir: installed_tests_execdir,
install_tag: 'tests',
install: install,
)