From 70b16298f30c8ca91032abbadead945f6ce8fa07 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 1 Sep 2022 19:21:59 -0400 Subject: Adopt REUSE machine-readable licensing standard --- test/meson.build | 35 +++++++++++++++++++++++++++-------- test/test_sord.c | 17 ++--------------- 2 files changed, 29 insertions(+), 23 deletions(-) (limited to 'test') diff --git a/test/meson.build b/test/meson.build index 551f44f..9979e2e 100644 --- a/test/meson.build +++ b/test/meson.build @@ -1,3 +1,30 @@ +# Copyright 2021-2022 David Robillard +# SPDX-License-Identifier: CC0-1.0 OR ISC + +#################### +# Project Metadata # +#################### + +# Check release metadata +if get_option('strict') and not meson.is_subproject() + autoship = find_program('autoship', required: false) + if autoship.found() + test('autoship', autoship, args: ['test', sord_src_root], suite: 'data') + endif +endif + +# Check licensing metadata +reuse = find_program('reuse', required: false) +if reuse.found() + test('REUSE', reuse, + args: ['--root', sord_src_root, 'lint'], + suite: 'data') +endif + +############## +# Unit Tests # +############## + unit_tests = [ 'sord', ] @@ -14,11 +41,3 @@ foreach unit : unit_tests suite: 'unit', ) endforeach - -if get_option('strict') and not meson.is_subproject() - # Check release metadata - autoship = find_program('autoship', required: false) - if autoship.found() - test('autoship', autoship, args: ['test', sord_src_root], suite: 'data') - endif -endif diff --git a/test/test_sord.c b/test/test_sord.c index e451049..d92f74c 100644 --- a/test/test_sord.c +++ b/test/test_sord.c @@ -1,18 +1,5 @@ -/* - Copyright 2011-2016 David Robillard - - 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 2011-2016 David Robillard +// SPDX-License-Identifier: ISC #include "serd/serd.h" #include "sord/sord.h" -- cgit v1.2.1