diff options
-rw-r--r-- | test/meson.build | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/test/meson.build b/test/meson.build index 36a3a6b..75ccc6d 100644 --- a/test/meson.build +++ b/test/meson.build @@ -1,27 +1,6 @@ # Copyright 2021-2024 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC -######## -# Lint # -######## - -if get_option('lint') - if not meson.is_subproject() - # Check release metadata - autoship = find_program('autoship', required: false) - if autoship.found() - test('autoship', autoship, args: ['test', sratom_src_root], suite: 'data') - endif - endif - - # Check licensing metadata - reuse = find_program('reuse', required: false) - if reuse.found() - reuse_args = ['--root', sratom_src_root, 'lint'] - test('REUSE', reuse, args: reuse_args, suite: 'data') - endif -endif - ################### # Header Warnings # ################### @@ -49,3 +28,24 @@ foreach unit : unit_tests suite: 'unit', ) endforeach + +######## +# Lint # +######## + +if get_option('lint') + if not meson.is_subproject() + # Check release metadata + autoship = find_program('autoship', required: false) + if autoship.found() + test('autoship', autoship, args: ['test', sratom_src_root], suite: 'data') + endif + endif + + # Check licensing metadata + reuse = find_program('reuse', required: false) + if reuse.found() + reuse_args = ['--root', sratom_src_root, 'lint'] + test('REUSE', reuse, args: reuse_args, suite: 'data') + endif +endif |