mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 00:12:19 +01:00 
			
		
		
		
	The test script checks the entire Meson build, not just GLib, so it will fail if GLib is a fallback subproject within some larger project that does not use `install_tag` as systematically as GLib does. In particular, if the larger project has a very conservative minimum Meson version (like for example dbus), it might not be possible to add `install_tag` to it. Resolves: https://gitlab.gnome.org/GNOME/glib/-/issues/3625 Signed-off-by: Simon McVittie <smcv@collabora.com>
		
			
				
	
	
		
			40 lines
		
	
	
		
			781 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			781 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| # Copyright 2024 Collabora Ltd.
 | |
| # 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 = [
 | |
|   'black.sh',
 | |
|   'flake8.sh',
 | |
|   'reuse.sh',
 | |
|   'shellcheck.sh',
 | |
| ]
 | |
| 
 | |
| if have_bash
 | |
|   foreach test_name : lint_scripts
 | |
|     test(
 | |
|       test_name,
 | |
|       bash,
 | |
|       args : [files(test_name)],
 | |
|       env : test_env,
 | |
|       suite : ['lint', 'no-valgrind'],
 | |
|       protocol : 'tap',
 | |
|     )
 | |
|   endforeach
 | |
| endif
 | |
| 
 | |
| if not meson.is_subproject()
 | |
|   test(
 | |
|     'check-missing-install-tag.py',
 | |
|     python,
 | |
|     args : ['-B', files('check-missing-install-tag.py')],
 | |
|     env : test_env,
 | |
|     suite : ['lint', 'no-valgrind'],
 | |
|     protocol : 'tap',
 | |
|   )
 | |
| endif
 | |
| 
 | |
| subdir('lib')
 |