1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

meson: add check-includes test to the test suite

Let's just call it always. It is quite fast (meson says 0.12 s).
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-05-05 09:35:54 +02:00
parent ba9ca60a88
commit 6089235829

View File

@ -4738,17 +4738,26 @@ if git.found()
run_target( run_target(
'ctags', 'ctags',
command : [env, 'ctags', '--tag-relative=never', '-o', '@0@/tags'.format(project_source_root)] + all_files) command : [env, 'ctags', '--tag-relative=never', '-o', '@0@/tags'.format(project_source_root)] + all_files)
endif
endif
if git.found() ############################################
if want_tests != 'false' and conf.get('BUILD_MODE_DEVELOPER') == 1
test('check-includes',
files('tools/check-includes.py'),
args: all_files,
env : ['PROJECT_SOURCE_ROOT=@0@'.format(project_source_root)])
endif
endif
####################################################
git_contrib_sh = find_program('tools/git-contrib.sh') git_contrib_sh = find_program('tools/git-contrib.sh')
run_target( run_target(
'git-contrib', 'git-contrib',
command : [git_contrib_sh]) command : [git_contrib_sh])
endif
if git.found() ####################################################
git_head = run_command( git_head = run_command(
git, '--git-dir=@0@/.git'.format(project_source_root), git, '--git-dir=@0@/.git'.format(project_source_root),
'rev-parse', 'HEAD', 'rev-parse', 'HEAD',