From 1771449e54965986a445e2d802a837d2a702f01a Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 18 May 2022 09:21:02 +0100 Subject: [PATCH] tests: Add SPDX license headers automatically Add SPDX license (but not copyright) headers to all files which follow a certain pattern in their existing non-machine-readable header comment. This commit was entirely generated using the command: ``` git ls-files glib/tests/*.c | xargs perl -0777 -pi -e 's/\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/\n \*\n \* SPDX-License-Identifier: LGPL-2.1-or-later\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/igs' ``` Signed-off-by: Philip Withnall Helps: #1415 --- glib/tests/array-test.c | 2 ++ glib/tests/cache.c | 2 ++ glib/tests/completion.c | 2 ++ glib/tests/convert.c | 2 ++ glib/tests/environment.c | 2 ++ glib/tests/getpwuid-preload.c | 2 ++ glib/tests/gvariant.c | 2 ++ glib/tests/hash.c | 2 ++ glib/tests/hostutils.c | 2 ++ glib/tests/io-channel-basic.c | 2 ++ glib/tests/io-channel.c | 2 ++ glib/tests/macros.c | 2 ++ glib/tests/mapping.c | 2 ++ glib/tests/memchunk.c | 2 ++ glib/tests/node.c | 2 ++ glib/tests/overflow.c | 2 ++ glib/tests/pattern.c | 2 ++ glib/tests/rcbox.c | 2 ++ glib/tests/refcount.c | 2 ++ glib/tests/refstring.c | 2 ++ glib/tests/regex.c | 2 ++ glib/tests/relation.c | 2 ++ glib/tests/scannerapi.c | 2 ++ glib/tests/shell.c | 2 ++ glib/tests/slice-color.c | 2 ++ glib/tests/slice-concurrent.c | 2 ++ glib/tests/sort.c | 2 ++ glib/tests/spawn-path-search-helper.c | 2 ++ glib/tests/spawn-path-search.c | 2 ++ glib/tests/spawn-test.c | 2 ++ glib/tests/testing-helper.c | 2 ++ glib/tests/tree.c | 2 ++ glib/tests/types.c | 2 ++ glib/tests/uri.c | 2 ++ glib/tests/utf8-performance.c | 2 ++ glib/tests/utf8-pointer.c | 2 ++ glib/tests/utf8-validate.c | 2 ++ 37 files changed, 74 insertions(+) diff --git a/glib/tests/array-test.c b/glib/tests/array-test.c index 284ac0809..1e61d64ef 100644 --- a/glib/tests/array-test.c +++ b/glib/tests/array-test.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/cache.c b/glib/tests/cache.c index e725b735e..e27356373 100644 --- a/glib/tests/cache.c +++ b/glib/tests/cache.c @@ -1,4 +1,6 @@ /* Copyright (C) 2011 Red Hat, Inc. + * + * SPDX-License-Identifier: LGPL-2.1-or-later * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/glib/tests/completion.c b/glib/tests/completion.c index 4f790373b..99ebcd145 100644 --- a/glib/tests/completion.c +++ b/glib/tests/completion.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/convert.c b/glib/tests/convert.c index de6c8a73a..9a1a25ab7 100644 --- a/glib/tests/convert.c +++ b/glib/tests/convert.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/environment.c b/glib/tests/environment.c index e60c17e2d..c262c47cd 100644 --- a/glib/tests/environment.c +++ b/glib/tests/environment.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 2010 Ryan Lortie * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/getpwuid-preload.c b/glib/tests/getpwuid-preload.c index 71df9cbf4..f4197e690 100644 --- a/glib/tests/getpwuid-preload.c +++ b/glib/tests/getpwuid-preload.c @@ -4,6 +4,8 @@ * * Author: Jakub Jelen * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/gvariant.c b/glib/tests/gvariant.c index 0110f2664..470688c15 100644 --- a/glib/tests/gvariant.c +++ b/glib/tests/gvariant.c @@ -1,6 +1,8 @@ /* * Copyright © 2010 Codethink Limited * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/hash.c b/glib/tests/hash.c index 114b6a242..5bb6ff3bd 100644 --- a/glib/tests/hash.c +++ b/glib/tests/hash.c @@ -2,6 +2,8 @@ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * Copyright (C) 1999 The Free Software Foundation * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/hostutils.c b/glib/tests/hostutils.c index 1d6f8550d..ddf83d23a 100644 --- a/glib/tests/hostutils.c +++ b/glib/tests/hostutils.c @@ -1,6 +1,8 @@ /* * Copyright (C) 2008 Red Hat, Inc * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/io-channel-basic.c b/glib/tests/io-channel-basic.c index b608a3cd4..142e38bec 100644 --- a/glib/tests/io-channel-basic.c +++ b/glib/tests/io-channel-basic.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 2000 Tor Lillqvist * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/io-channel.c b/glib/tests/io-channel.c index eb75f8233..c5dd01d04 100644 --- a/glib/tests/io-channel.c +++ b/glib/tests/io-channel.c @@ -10,6 +10,8 @@ * Copyright © 2005, 2006, 2008, 2012, 2013 Matthias Clasen * Copyright © 2020 Endless Mobile, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/macros.c b/glib/tests/macros.c index 317832a41..efe632b52 100644 --- a/glib/tests/macros.c +++ b/glib/tests/macros.c @@ -2,6 +2,8 @@ * * Copyright © 2018 Endless Mobile, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/mapping.c b/glib/tests/mapping.c index 260134a91..2ad63d296 100644 --- a/glib/tests/mapping.c +++ b/glib/tests/mapping.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 2005 Matthias Clasen * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/memchunk.c b/glib/tests/memchunk.c index 8c13787f2..2595cb80c 100644 --- a/glib/tests/memchunk.c +++ b/glib/tests/memchunk.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/node.c b/glib/tests/node.c index e75821cee..effec5669 100644 --- a/glib/tests/node.c +++ b/glib/tests/node.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/overflow.c b/glib/tests/overflow.c index 9e277641c..e409c33a1 100644 --- a/glib/tests/overflow.c +++ b/glib/tests/overflow.c @@ -1,6 +1,8 @@ /* * Copyright 2015 Canonical Limited * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/pattern.c b/glib/tests/pattern.c index ecc27db26..b590acb8a 100644 --- a/glib/tests/pattern.c +++ b/glib/tests/pattern.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 2001 Matthias Clasen * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/rcbox.c b/glib/tests/rcbox.c index fe10075da..70955b55e 100644 --- a/glib/tests/rcbox.c +++ b/glib/tests/rcbox.c @@ -2,6 +2,8 @@ * * Copyright 2018 Emmanuele Bassi * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/refcount.c b/glib/tests/refcount.c index e19a2d7ef..9a906b24e 100644 --- a/glib/tests/refcount.c +++ b/glib/tests/refcount.c @@ -2,6 +2,8 @@ * * Copyright 2018 Emmanuele Bassi * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/refstring.c b/glib/tests/refstring.c index edfadb522..eae2f057a 100644 --- a/glib/tests/refstring.c +++ b/glib/tests/refstring.c @@ -2,6 +2,8 @@ * * Copyright 2018 Emmanuele Bassi * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/regex.c b/glib/tests/regex.c index 88d12edf6..e19f97587 100644 --- a/glib/tests/regex.c +++ b/glib/tests/regex.c @@ -2,6 +2,8 @@ * Copyright (C) 2005 - 2006, Marco Barisione * Copyright (C) 2010 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/relation.c b/glib/tests/relation.c index 8caf4573a..741bea941 100644 --- a/glib/tests/relation.c +++ b/glib/tests/relation.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/scannerapi.c b/glib/tests/scannerapi.c index 6813184cf..4ee9754d1 100644 --- a/glib/tests/scannerapi.c +++ b/glib/tests/scannerapi.c @@ -3,6 +3,8 @@ * Copyright (C) 2007 Imendio AB * Authors: Tim Janik * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/shell.c b/glib/tests/shell.c index 5cde37119..e00228351 100644 --- a/glib/tests/shell.c +++ b/glib/tests/shell.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/slice-color.c b/glib/tests/slice-color.c index 733bfcc56..ceda93855 100644 --- a/glib/tests/slice-color.c +++ b/glib/tests/slice-color.c @@ -1,6 +1,8 @@ /* GLIB sliced memory - fast threaded memory chunk allocator * Copyright (C) 2005 Tim Janik * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/slice-concurrent.c b/glib/tests/slice-concurrent.c index 4551e20dc..568e67cf3 100644 --- a/glib/tests/slice-concurrent.c +++ b/glib/tests/slice-concurrent.c @@ -2,6 +2,8 @@ * Copyright (C) 2006 Stefan Westerfeld * Copyright (C) 2007 Tim Janik * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/sort.c b/glib/tests/sort.c index eb748c504..e42e645d7 100644 --- a/glib/tests/sort.c +++ b/glib/tests/sort.c @@ -1,6 +1,8 @@ /* * Copyright (C) 2011 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/spawn-path-search-helper.c b/glib/tests/spawn-path-search-helper.c index 37be43b7f..983b48b29 100644 --- a/glib/tests/spawn-path-search-helper.c +++ b/glib/tests/spawn-path-search-helper.c @@ -1,6 +1,8 @@ /* * Copyright 2021 Collabora Ltd. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/spawn-path-search.c b/glib/tests/spawn-path-search.c index 5008fc960..163b70ac9 100644 --- a/glib/tests/spawn-path-search.c +++ b/glib/tests/spawn-path-search.c @@ -1,6 +1,8 @@ /* * Copyright 2021 Collabora Ltd. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/spawn-test.c b/glib/tests/spawn-test.c index 17b289963..4e54ab258 100644 --- a/glib/tests/spawn-test.c +++ b/glib/tests/spawn-test.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/testing-helper.c b/glib/tests/testing-helper.c index 7731538a0..3d435e588 100644 --- a/glib/tests/testing-helper.c +++ b/glib/tests/testing-helper.c @@ -1,6 +1,8 @@ /* * Copyright 2018 Collabora Ltd. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/tree.c b/glib/tests/tree.c index e882926e6..79f4c0059 100644 --- a/glib/tests/tree.c +++ b/glib/tests/tree.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/types.c b/glib/tests/types.c index 58eb7487c..915f2807a 100644 --- a/glib/tests/types.c +++ b/glib/tests/types.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/uri.c b/glib/tests/uri.c index e1ad7cfe1..0152b1a76 100644 --- a/glib/tests/uri.c +++ b/glib/tests/uri.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/utf8-performance.c b/glib/tests/utf8-performance.c index a9d06ea66..ea24badf6 100644 --- a/glib/tests/utf8-performance.c +++ b/glib/tests/utf8-performance.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010 Mikhail Zabaluev * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/utf8-pointer.c b/glib/tests/utf8-pointer.c index 58350960b..41f2b24b4 100644 --- a/glib/tests/utf8-pointer.c +++ b/glib/tests/utf8-pointer.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either diff --git a/glib/tests/utf8-validate.c b/glib/tests/utf8-validate.c index 41d19adb5..6c230452c 100644 --- a/glib/tests/utf8-validate.c +++ b/glib/tests/utf8-validate.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 2001 Matthias Clasen * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either