diff options
author | David Robillard <d@drobilla.net> | 2022-09-01 14:20:43 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-01 19:50:20 -0400 |
commit | 6583dd97d673adc62d55a477721bfebc651c0a30 (patch) | |
tree | 8022cd8c9ab4a733b2504ef96f697e23b32b20a3 /test/meson.build | |
parent | 145ed2fe9756f707d9fd5f03ada5327d04e1b972 (diff) | |
download | sratom-6583dd97d673adc62d55a477721bfebc651c0a30.tar.gz sratom-6583dd97d673adc62d55a477721bfebc651c0a30.tar.bz2 sratom-6583dd97d673adc62d55a477721bfebc651c0a30.zip |
Adopt REUSE machine-readable licensing standard
Diffstat (limited to 'test/meson.build')
-rw-r--r-- | test/meson.build | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/test/meson.build b/test/meson.build index e7a2a9f..593308e 100644 --- a/test/meson.build +++ b/test/meson.build @@ -1,3 +1,31 @@ +# Copyright 2021-2022 David Robillard <d@drobilla.net> +# SPDX-License-Identifier: CC0-1.0 OR ISC + +#################### +# Project Metadata # +#################### + + +# Check release metadata +if not meson.is_subproject() and get_option('strict') + 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() + test('REUSE', reuse, + args: ['--root', sratom_src_root, 'lint'], + suite: 'data') +endif + +############## +# Unit Tests # +############## + unit_tests = [ 'sratom', ] @@ -15,11 +43,3 @@ foreach unit : unit_tests suite: 'unit', ) endforeach - -if not meson.is_subproject() and get_option('strict') - # Check release metadata - autoship = find_program('autoship', required: false) - if autoship.found() - test('autoship', autoship, args: ['test', sratom_src_root], suite: 'data') - endif -endif |