From: Zbigniew Jędrzejewski-Szmek Date: Fri, 5 May 2023 07:35:54 +0000 (+0200) Subject: meson: add check-includes test to the test suite X-Git-Tag: v254-rc1~529^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=608923582980357c3feb3619231286e48c084f7d;p=thirdparty%2Fsystemd.git meson: add check-includes test to the test suite Let's just call it always. It is quite fast (meson says 0.12 s). --- diff --git a/meson.build b/meson.build index 1fd22c4f453..9c35a701dd4 100644 --- a/meson.build +++ b/meson.build @@ -4738,17 +4738,26 @@ if git.found() run_target( 'ctags', command : [env, 'ctags', '--tag-relative=never', '-o', '@0@/tags'.format(project_source_root)] + all_files) + + ############################################ + + 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 -endif -if git.found() + #################################################### + git_contrib_sh = find_program('tools/git-contrib.sh') run_target( 'git-contrib', command : [git_contrib_sh]) -endif -if git.found() + #################################################### + git_head = run_command( git, '--git-dir=@0@/.git'.format(project_source_root), 'rev-parse', 'HEAD',