From f905bd8e17bfcee7240ee3174f5ed420043c8bad Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Apr 2023 09:00:23 -0400 Subject: Use new meson strict warning system Meson includes warning_level=everything as of version 1.0.0, which supercedes maintaining redundant lists of warning flags here. --- test/meson.build | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) (limited to 'test/meson.build') diff --git a/test/meson.build b/test/meson.build index 45173690..283ce3e8 100644 --- a/test/meson.build +++ b/test/meson.build @@ -5,11 +5,20 @@ run_suite = find_program('run_suite.py') wrapper = meson.get_external_property('exe_wrapper', '') -#################### -# Project Metadata # -#################### +######################## +# Scripts and Metadata # +######################## -if get_option('strict') +python_scripts = files( + '../scripts/serd_bench.py', + 'run_suite.py', + 'serd_test_util/__init__.py', + 'test_quiet.py', + 'test_stdin.py', + 'test_write_error.py', +) + +if get_option('lint') # Check release metadata if not meson.is_subproject() autoship = find_program('autoship', required: false) @@ -28,22 +37,7 @@ if get_option('strict') suite: 'data', ) endif -endif - -########### -# Scripts # -########### - -python_scripts = files( - '../scripts/serd_bench.py', - 'run_suite.py', - 'serd_test_util/__init__.py', - 'test_quiet.py', - 'test_stdin.py', - 'test_write_error.py', -) -if get_option('strict') # Check script formatting black = find_program('black', required: false) if black.found() -- cgit v1.2.1