summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 13:29:39 -0400
committerDavid Robillard <d@drobilla.net>2024-10-06 13:29:39 -0400
commit6e285c830ac47e7575a4cca2527ba4d6c4a39747 (patch)
tree8fb4a97789f60bd16d80ef1ec68f9d184ac117d1 /test
parentc23d46b4318432256e0ddee3b695034545d775dd (diff)
downloadsratom-6e285c830ac47e7575a4cca2527ba4d6c4a39747.tar.gz
sratom-6e285c830ac47e7575a4cca2527ba4d6c4a39747.tar.bz2
sratom-6e285c830ac47e7575a4cca2527ba4d6c4a39747.zip
Relocate lint test definitions
Diffstat (limited to 'test')
-rw-r--r--test/meson.build42
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