summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/.clang-tidy3
-rw-r--r--test/meson.build36
-rw-r--r--test/test_sratom.c17
3 files changed, 33 insertions, 23 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 30cb10f..683e359 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -1,3 +1,6 @@
+# Copyright 2020-2022 David Robillard <d@drobilla.net>
+# SPDX-License-Identifier: CC0-1.0 OR ISC
+
Checks: >
*,
-*-magic-numbers,
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
diff --git a/test/test_sratom.c b/test/test_sratom.c
index cc56d8f..246b5c5 100644
--- a/test/test_sratom.c
+++ b/test/test_sratom.c
@@ -1,18 +1,5 @@
-/*
- Copyright 2012-2016 David Robillard <d@drobilla.net>
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
+// Copyright 2012-2016 David Robillard <d@drobilla.net>
+// SPDX-License-Identifier: ISC
#include "lv2/atom/atom.h"
#include "lv2/atom/forge.h"