mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
Merge branch 'wip/smcv/lint-env' into 'main'
tests: Provide G_TEST_SRCDIR, G_TEST_BUILDDIR to lint scripts Closes #3289 See merge request GNOME/glib!3968
This commit is contained in:
commit
e64a93269d
@ -1,6 +1,10 @@
|
|||||||
# Copyright 2024 Collabora Ltd.
|
# Copyright 2024 Collabora Ltd.
|
||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
|
test_env = environment()
|
||||||
|
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||||
|
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||||
|
|
||||||
lint_scripts = [
|
lint_scripts = [
|
||||||
'black.sh',
|
'black.sh',
|
||||||
'flake8.sh',
|
'flake8.sh',
|
||||||
@ -12,7 +16,7 @@ if have_bash
|
|||||||
foreach test_name : lint_scripts
|
foreach test_name : lint_scripts
|
||||||
test(
|
test(
|
||||||
test_name, files(test_name),
|
test_name, files(test_name),
|
||||||
env : common_test_env,
|
env : test_env,
|
||||||
suite : ['lint', 'no-valgrind'],
|
suite : ['lint', 'no-valgrind'],
|
||||||
protocol : 'tap',
|
protocol : 'tap',
|
||||||
)
|
)
|
||||||
@ -23,7 +27,7 @@ test(
|
|||||||
'check-missing-install-tag.py',
|
'check-missing-install-tag.py',
|
||||||
python,
|
python,
|
||||||
args : ['-B', files('check-missing-install-tag.py')],
|
args : ['-B', files('check-missing-install-tag.py')],
|
||||||
env : common_test_env,
|
env : test_env,
|
||||||
suite : ['lint', 'no-valgrind'],
|
suite : ['lint', 'no-valgrind'],
|
||||||
protocol : 'tap',
|
protocol : 'tap',
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user