[glib: 4/5] tests: Add SPDX license headers automatically




commit 1771449e54965986a445e2d802a837d2a702f01a
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed May 18 09:21:02 2022 +0100

    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 <pwithnall endlessos org>
    
    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 284ac08093..1e61d64ef3 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 e725b735e4..e273563730 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 4f790373b6..99ebcd145d 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 de6c8a73a5..9a1a25ab78 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 e60c17e2d1..c262c47cda 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 71df9cbf4f..f4197e6909 100644
--- a/glib/tests/getpwuid-preload.c
+++ b/glib/tests/getpwuid-preload.c
@@ -4,6 +4,8 @@
  *
  * Author: Jakub Jelen <jjelen redhat com>
  *
+ * 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 0110f2664c..470688c15e 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 114b6a242f..5bb6ff3bd3 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 1d6f8550d9..ddf83d23a1 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 b608a3cd45..142e38becd 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 eb75f82337..c5dd01d04e 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 317832a410..efe632b521 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 260134a916..2ad63d296c 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 8c13787f2c..2595cb80ce 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 e75821cee5..effec5669c 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 9e277641c6..e409c33a10 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 ecc27db26e..b590acb8a7 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 <matthiasc poet de>
  *
+ * 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 fe10075da5..70955b55eb 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 e19a2d7ef8..9a906b24e8 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 edfadb5229..eae2f057ac 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 88d12edf64..e19f975875 100644
--- a/glib/tests/regex.c
+++ b/glib/tests/regex.c
@@ -2,6 +2,8 @@
  * Copyright (C) 2005 - 2006, Marco Barisione <marco barisione org>
  * 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 8caf4573a2..741bea9410 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 6813184cf2..4ee9754d18 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 5cde371191..e00228351e 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 733bfcc569..ceda938551 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 4551e20dc5..568e67cf36 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 eb748c5047..e42e645d72 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 37be43b7f9..983b48b297 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 5008fc9608..163b70ac92 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 17b2899633..4e54ab258e 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 7731538a02..3d435e588d 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 e882926e6b..79f4c00593 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 58eb7487c3..915f2807ab 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 e1ad7cfe1e..0152b1a76d 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 a9d06ea66c..ea24badf63 100644
--- a/glib/tests/utf8-performance.c
+++ b/glib/tests/utf8-performance.c
@@ -2,6 +2,8 @@
  *
  * Copyright (C) 2010 Mikhail Zabaluev <mikhail zabaluev gmail com>
  *
+ * 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 58350960b4..41f2b24b48 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 41d19adb52..6c230452c6 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 <matthiasc poet de>
  *
+ * 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]