[gjs: 10/18] maint: Add dual MIT/LGPL license to all GJS files that didn't have one




commit cd9fd1dfdacd19b3a08f15f7e70c1974337cca5e
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Sep 5 21:36:16 2020 -0700

    maint: Add dual MIT/LGPL license to all GJS files that didn't have one
    
    This adds a SPDX-License-Identifier comment to all files that are part
    of GJS, part of its unit tests, or auxiliary tools. (Except for some
    files like the debugger scripts that don't support comments.)

 .clang-format                                                 | 1 +
 .eslintignore                                                 | 2 ++
 .eslintrc.yml                                                 | 1 +
 .gitlab-ci.yml                                                | 1 +
 .lint-condo.yaml                                              | 1 +
 CPPLINT.cfg                                                   | 2 ++
 build/choose-tests-locale.sh                                  | 1 +
 build/compile-gschemas.py                                     | 1 +
 build/symlink-gjs.py                                          | 1 +
 examples/clutter.js                                           | 2 ++
 examples/dbus-client.js                                       | 2 ++
 examples/dbus-service.js                                      | 2 ++
 examples/gettext.js                                           | 2 ++
 examples/gio-cat.js                                           | 1 +
 examples/glistmodel.js                                        | 1 +
 examples/gtk-application.js                                   | 2 ++
 examples/gtk.js                                               | 2 ++
 examples/http-client.js                                       | 2 ++
 examples/http-server.js                                       | 2 ++
 examples/webkit.js                                            | 2 ++
 examples/websocket-client.js                                  | 2 ++
 gi/gjs_gi_probes.d                                            | 4 ++++
 gjs.doap                                                      | 1 +
 gjs/gjs.stp.in                                                | 3 +++
 installed-tests/debugger-test.sh                              | 1 +
 installed-tests/debugger.test.in                              | 2 ++
 installed-tests/debugger/.eslintrc.yml                        | 2 ++
 installed-tests/extra/gjs.supp                                | 2 ++
 installed-tests/extra/lsan.supp                               | 2 ++
 installed-tests/js/.eslintrc.yml                              | 1 +
 installed-tests/js/complex3.ui                                | 1 +
 installed-tests/js/complex4.ui                                | 1 +
 installed-tests/js/jsunit.gresources.xml                      | 1 +
 installed-tests/js/meson.build                                | 2 ++
 installed-tests/js/minijasmine.js                             | 1 +
 installed-tests/js/modules/alwaysThrows.js                    | 2 +-
 installed-tests/js/modules/badOverrides/.eslintrc.yml         | 1 +
 installed-tests/js/modules/badOverrides/GIMarshallingTests.js | 1 +
 installed-tests/js/modules/badOverrides/Gio.js                | 1 +
 installed-tests/js/modules/badOverrides/Regress.js            | 1 +
 installed-tests/js/modules/badOverrides/WarnLib.js            | 1 +
 installed-tests/js/modules/foobar.js                          | 2 ++
 installed-tests/js/modules/lexicalScope.js                    | 1 +
 installed-tests/js/modules/modunicode.js                      | 2 ++
 installed-tests/js/modules/mutualImport/a.js                  | 1 +
 installed-tests/js/modules/mutualImport/b.js                  | 1 +
 installed-tests/js/modules/overrides/.eslintrc.yml            | 1 +
 installed-tests/js/modules/overrides/GIMarshallingTests.js    | 2 ++
 installed-tests/js/modules/subA/subB/__init__.js              | 1 +
 installed-tests/js/modules/subA/subB/foobar.js                | 2 ++
 installed-tests/js/org.gnome.GjsTest.gschema.xml              | 1 +
 installed-tests/js/testByteArray.js                           | 2 ++
 installed-tests/js/testCairo.js                               | 2 ++
 installed-tests/js/testExceptions.js                          | 2 ++
 installed-tests/js/testFormat.js                              | 2 ++
 installed-tests/js/testFundamental.js                         | 2 ++
 installed-tests/js/testGDBus.js                               | 2 ++
 installed-tests/js/testGIMarshalling.js                       | 2 ++
 installed-tests/js/testGLib.js                                | 2 ++
 installed-tests/js/testGObject.js                             | 2 ++
 installed-tests/js/testGObjectClass.js                        | 2 ++
 installed-tests/js/testGObjectDestructionAccess.js            | 2 ++
 installed-tests/js/testGObjectInterface.js                    | 2 ++
 installed-tests/js/testGTypeClass.js                          | 2 ++
 installed-tests/js/testGettext.js                             | 1 +
 installed-tests/js/testGio.js                                 | 2 ++
 installed-tests/js/testGtk3.js                                | 2 ++
 installed-tests/js/testGtk4.js                                | 2 ++
 installed-tests/js/testImporter.js                            | 2 ++
 installed-tests/js/testIntrospection.js                       | 2 ++
 installed-tests/js/testLang.js                                | 2 ++
 installed-tests/js/testLegacyByteArray.js                     | 2 ++
 installed-tests/js/testLegacyClass.js                         | 1 +
 installed-tests/js/testLegacyGObject.js                       | 1 +
 installed-tests/js/testLegacyGtk.js                           | 1 +
 installed-tests/js/testMainloop.js                            | 1 +
 installed-tests/js/testNamespace.js                           | 2 ++
 installed-tests/js/testPackage.js                             | 2 ++
 installed-tests/js/testParamSpec.js                           | 2 ++
 installed-tests/js/testPrint.js                               | 2 ++
 installed-tests/js/testRegress.js                             | 2 ++
 installed-tests/js/testSignals.js                             | 1 +
 installed-tests/js/testSystem.js                              | 2 ++
 installed-tests/js/testTweener.js                             | 2 ++
 installed-tests/js/testWarnLib.js                             | 2 ++
 installed-tests/js/testself.js                                | 2 ++
 installed-tests/meson.build                                   | 2 ++
 installed-tests/minijasmine.test.in                           | 2 ++
 installed-tests/script.test.in                                | 2 ++
 installed-tests/scripts/common.sh                             | 1 +
 installed-tests/scripts/testCommandLine.sh                    | 1 +
 installed-tests/scripts/testExamples.sh                       | 2 ++
 installed-tests/scripts/testWarnings.sh                       | 1 +
 js.gresource.xml                                              | 1 +
 libgjs-private/gjs-gdbus-wrapper.c                            | 1 +
 libgjs.map                                                    | 1 +
 libgjs.symbols                                                | 2 ++
 meson.build                                                   | 2 ++
 meson_options.txt                                             | 2 ++
 modules/core/_format.js                                       | 1 +
 modules/core/overrides/.eslintrc.yml                          | 1 +
 modules/core/overrides/cairo.js                               | 2 ++
 modules/script/_bootstrap/.eslintrc.yml                       | 1 +
 modules/script/_bootstrap/coverage.js                         | 2 ++
 modules/script/_bootstrap/default.js                          | 2 ++
 modules/script/byteArray.js                                   | 1 +
 modules/script/format.js                                      | 1 +
 subprojects/.gitignore                                        | 1 +
 subprojects/glib.wrap                                         | 2 ++
 subprojects/gobject-introspection.wrap                        | 2 ++
 test/extra/Dockerfile                                         | 2 ++
 test/extra/Dockerfile.alpine.cpplint                          | 1 +
 test/extra/Dockerfile.debug                                   | 2 ++
 test/extra/do_environment.sh                                  | 1 +
 test/gjs-test-call-args.cpp                                   | 2 ++
 test/gjs-test-coverage/loadedJSFromResource.js                | 2 ++
 test/gjs-test-rooting.cpp                                     | 2 ++
 test/meson.build                                              | 2 ++
 test/mock-js-resources.gresource.xml                          | 1 +
 test/test-bus.conf                                            | 1 +
 test/test-ci.sh                                               | 1 +
 tools/gjs-private-iwyu.imp                                    | 1 +
 tools/gjs-public-iwyu.imp                                     | 1 +
 tools/process_iwyu.py                                         | 1 +
 tools/run_coverage.sh                                         | 1 +
 tools/run_cppcheck.sh                                         | 1 +
 tools/run_iwyu.sh                                             | 1 +
 127 files changed, 200 insertions(+), 1 deletion(-)
---
diff --git a/.clang-format b/.clang-format
index e0a5c46b..a08ef5c5 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,4 +1,5 @@
 ---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 # Global Options Go Here
 IndentWidth: 4
 ColumnLimit: 80
diff --git a/.eslintignore b/.eslintignore
index 2abd6bb2..6e5903ab 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 installed-tests/js/jasmine.js
 installed-tests/js/modules/badOverrides/WarnLib.js
 modules/script/jsUnit.js
diff --git a/.eslintrc.yml b/.eslintrc.yml
index b50a5760..5b260cc5 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -1,4 +1,5 @@
 ---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 env:
   es6: true
 extends: 'eslint:recommended'
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 626ee33a..2d60d5c6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 services:
   - docker
 
diff --git a/.lint-condo.yaml b/.lint-condo.yaml
index 6da1d58c..3e5a183b 100644
--- a/.lint-condo.yaml
+++ b/.lint-condo.yaml
@@ -1,3 +1,4 @@
 ---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 linters:
   - eslint . --format unix
diff --git a/CPPLINT.cfg b/CPPLINT.cfg
index 1d7ab35a..8862d19c 100644
--- a/CPPLINT.cfg
+++ b/CPPLINT.cfg
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 # This is the toplevel CPPLINT.cfg file
 set noparent
 
diff --git a/build/choose-tests-locale.sh b/build/choose-tests-locale.sh
index 73b273b8..b0ebe1e3 100755
--- a/build/choose-tests-locale.sh
+++ b/build/choose-tests-locale.sh
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 if ! which locale > /dev/null; then
   exit 1
diff --git a/build/compile-gschemas.py b/build/compile-gschemas.py
index fc0b1afc..9cd5ad58 100644
--- a/build/compile-gschemas.py
+++ b/build/compile-gschemas.py
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 import os
 import subprocess
diff --git a/build/symlink-gjs.py b/build/symlink-gjs.py
index 1a001fb2..d8eac68e 100644
--- a/build/symlink-gjs.py
+++ b/build/symlink-gjs.py
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 import os
 import shutil
diff --git a/examples/clutter.js b/examples/clutter.js
index a775b60a..7174e080 100644
--- a/examples/clutter.js
+++ b/examples/clutter.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const Clutter = imports.gi.Clutter;
 
 Clutter.init(null);
diff --git a/examples/dbus-client.js b/examples/dbus-client.js
index 7cedf69c..0b9729a5 100644
--- a/examples/dbus-client.js
+++ b/examples/dbus-client.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 'use strict';
 
 const GLib = imports.gi.GLib;
diff --git a/examples/dbus-service.js b/examples/dbus-service.js
index 493ebe54..c1d6d659 100644
--- a/examples/dbus-service.js
+++ b/examples/dbus-service.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 'use strict';
 
 const GLib = imports.gi.GLib;
diff --git a/examples/gettext.js b/examples/gettext.js
index 25236ebd..360bfdb2 100644
--- a/examples/gettext.js
+++ b/examples/gettext.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 imports.gi.versions.Gtk = '3.0';
 const Gettext = imports.gettext;
 const Gtk = imports.gi.Gtk;
diff --git a/examples/gio-cat.js b/examples/gio-cat.js
index b80af3bc..d0f51695 100644
--- a/examples/gio-cat.js
+++ b/examples/gio-cat.js
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 const ByteArray = imports.byteArray;
 const GLib = imports.gi.GLib;
diff --git a/examples/glistmodel.js b/examples/glistmodel.js
index 4a04e77e..8a2a758f 100644
--- a/examples/glistmodel.js
+++ b/examples/glistmodel.js
@@ -1,4 +1,5 @@
 /* exported GjsListStore */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 'use strict';
 
diff --git a/examples/gtk-application.js b/examples/gtk-application.js
index e8ea05a4..f60e4690 100644
--- a/examples/gtk-application.js
+++ b/examples/gtk-application.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // See the note about Application.run() at the bottom of the script
 const System = imports.system;
 
diff --git a/examples/gtk.js b/examples/gtk.js
index e4205747..20df833d 100644
--- a/examples/gtk.js
+++ b/examples/gtk.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // Include this in case both GTK3 and GTK4 installed, otherwise an exception
 // will be thrown
 imports.gi.versions.Gtk = '3.0';
diff --git a/examples/http-client.js b/examples/http-client.js
index d6f863eb..c68f409b 100644
--- a/examples/http-client.js
+++ b/examples/http-client.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // This is a simple example of a HTTP client in Gjs using libsoup
 // https://developer.gnome.org/libsoup/stable/libsoup-client-howto.html
 
diff --git a/examples/http-server.js b/examples/http-server.js
index 0e8aede2..48ba0a9c 100644
--- a/examples/http-server.js
+++ b/examples/http-server.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // This is a simple example of a HTTP server in Gjs using libsoup
 
 const Soup = imports.gi.Soup;
diff --git a/examples/webkit.js b/examples/webkit.js
index f3c117a8..ddaac022 100644
--- a/examples/webkit.js
+++ b/examples/webkit.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 imports.gi.versions.Gtk = '3.0';
 imports.gi.versions.WebKit2 = '4.0';
 const Gtk = imports.gi.Gtk;
diff --git a/examples/websocket-client.js b/examples/websocket-client.js
index 84ca48ad..a9fe4dde 100644
--- a/examples/websocket-client.js
+++ b/examples/websocket-client.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // This is an example of a WebSocket client in Gjs using libsoup
 // https://developer.gnome.org/libsoup/stable/libsoup-2.4-WebSockets.html
 
diff --git a/gi/gjs_gi_probes.d b/gi/gjs_gi_probes.d
index 79fd125b..9e2cacaa 100644
--- a/gi/gjs_gi_probes.d
+++ b/gi/gjs_gi_probes.d
@@ -1,3 +1,7 @@
+/*
+ * SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+ */
+
 provider gjs {
        probe object__wrapper__new(void*, void*, char *, char *);
        probe object__wrapper__finalize(void*, void*, char *, char *);
diff --git a/gjs.doap b/gjs.doap
index 67c51060..03ddaa5a 100644
--- a/gjs.doap
+++ b/gjs.doap
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -->
 <Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
          xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";
          xmlns:foaf="http://xmlns.com/foaf/0.1/";
diff --git a/gjs/gjs.stp.in b/gjs/gjs.stp.in
index ae7f8951..34bd99ce 100644
--- a/gjs/gjs.stp.in
+++ b/gjs/gjs.stp.in
@@ -1,3 +1,6 @@
+/*
+ * SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+ */
 
 probe gjs.object_wrapper_new = process("@EXPANDED_LIBDIR@/libgjs-gi.so.0.0.0").mark("object__wrapper__new")
 {
diff --git a/installed-tests/debugger-test.sh b/installed-tests/debugger-test.sh
index 0d118490..b5a0bee0 100755
--- a/installed-tests/debugger-test.sh
+++ b/installed-tests/debugger-test.sh
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then
     gjs="$TOP_BUILDDIR/gjs-console"
diff --git a/installed-tests/debugger.test.in b/installed-tests/debugger.test.in
index 57e01ac7..c6c51de8 100644
--- a/installed-tests/debugger.test.in
+++ b/installed-tests/debugger.test.in
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 [Test]
 Type=session
 Exec=@installed_tests_execdir@/debugger-test.sh @installed_tests_execdir@/debugger/@name@
diff --git a/installed-tests/debugger/.eslintrc.yml b/installed-tests/debugger/.eslintrc.yml
index 9643be5f..324367d4 100644
--- a/installed-tests/debugger/.eslintrc.yml
+++ b/installed-tests/debugger/.eslintrc.yml
@@ -1,2 +1,4 @@
+---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 rules:
   no-debugger: 'off'
diff --git a/installed-tests/extra/gjs.supp b/installed-tests/extra/gjs.supp
index 396fac56..fd74f546 100644
--- a/installed-tests/extra/gjs.supp
+++ b/installed-tests/extra/gjs.supp
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 # Valgrind suppressions file for GJS
 # This is intended to be used in addition to GLib's glib.supp file.
 
diff --git a/installed-tests/extra/lsan.supp b/installed-tests/extra/lsan.supp
index 9b0105c6..52340674 100644
--- a/installed-tests/extra/lsan.supp
+++ b/installed-tests/extra/lsan.supp
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 # SpiderMonkey leaks a mutex for each GC helper thread.
 leak:js::HelperThread::threadLoop
 
diff --git a/installed-tests/js/.eslintrc.yml b/installed-tests/js/.eslintrc.yml
index 14b7a033..d4ab1a80 100644
--- a/installed-tests/js/.eslintrc.yml
+++ b/installed-tests/js/.eslintrc.yml
@@ -1,4 +1,5 @@
 ---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 env:
   jasmine: true
 rules:
diff --git a/installed-tests/js/complex3.ui b/installed-tests/js/complex3.ui
index b5136fbc..9215a0c2 100644
--- a/installed-tests/js/complex3.ui
+++ b/installed-tests/js/complex3.ui
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -->
 <interface>
   <template class="Gjs_MyComplexGtkSubclassFromResource" parent="GtkGrid">
     <property name="margin_top">10</property>
diff --git a/installed-tests/js/complex4.ui b/installed-tests/js/complex4.ui
index f355785a..b3c9e0ed 100644
--- a/installed-tests/js/complex4.ui
+++ b/installed-tests/js/complex4.ui
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -->
 <interface>
   <template class="Gjs_MyComplexGtkSubclassFromResource" parent="GtkGrid">
     <property name="margin_top">10</property>
diff --git a/installed-tests/js/jsunit.gresources.xml b/installed-tests/js/jsunit.gresources.xml
index e0060c8c..4e6372cf 100644
--- a/installed-tests/js/jsunit.gresources.xml
+++ b/installed-tests/js/jsunit.gresources.xml
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -->
 <gresources>
   <gresource prefix="/org/gjs/jsunit">
     <file preprocess="xml-stripblanks">complex3.ui</file>
diff --git a/installed-tests/js/meson.build b/installed-tests/js/meson.build
index b6fa7ce3..bd80555b 100644
--- a/installed-tests/js/meson.build
+++ b/installed-tests/js/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 ### Jasmine tests ##############################################################
 
 jsunit_resources_files = gnome.compile_resources('jsunit-resources',
diff --git a/installed-tests/js/minijasmine.js b/installed-tests/js/minijasmine.js
index a4246803..cbf94860 100644
--- a/installed-tests/js/minijasmine.js
+++ b/installed-tests/js/minijasmine.js
@@ -1,4 +1,5 @@
 #!/usr/bin/env gjs
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 const GLib = imports.gi.GLib;
 
diff --git a/installed-tests/js/modules/alwaysThrows.js b/installed-tests/js/modules/alwaysThrows.js
index 13f7b227..ed118ce9 100644
--- a/installed-tests/js/modules/alwaysThrows.js
+++ b/installed-tests/js/modules/alwaysThrows.js
@@ -1,4 +1,4 @@
 // line 0
-// line 1
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 // line 2
 throw new Error('This is an error that always happens on line 3');
diff --git a/installed-tests/js/modules/badOverrides/.eslintrc.yml 
b/installed-tests/js/modules/badOverrides/.eslintrc.yml
index c65c1600..bef63f79 100644
--- a/installed-tests/js/modules/badOverrides/.eslintrc.yml
+++ b/installed-tests/js/modules/badOverrides/.eslintrc.yml
@@ -1,4 +1,5 @@
 ---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 rules:
   no-throw-literal: 'off'  # these are intended to be bad code
   no-unused-vars:
diff --git a/installed-tests/js/modules/badOverrides/GIMarshallingTests.js 
b/installed-tests/js/modules/badOverrides/GIMarshallingTests.js
index 6264d3e2..bd7adaef 100644
--- a/installed-tests/js/modules/badOverrides/GIMarshallingTests.js
+++ b/installed-tests/js/modules/badOverrides/GIMarshallingTests.js
@@ -1,3 +1,4 @@
 // Sabotage the import of imports.gi.GIMarshallingTests!
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 throw '💩';
diff --git a/installed-tests/js/modules/badOverrides/Gio.js b/installed-tests/js/modules/badOverrides/Gio.js
index ba7dc95c..2313b23e 100644
--- a/installed-tests/js/modules/badOverrides/Gio.js
+++ b/installed-tests/js/modules/badOverrides/Gio.js
@@ -1,3 +1,4 @@
 // Sabotage the import of imports.gi.Gio!
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 var _init = '💩';
diff --git a/installed-tests/js/modules/badOverrides/Regress.js 
b/installed-tests/js/modules/badOverrides/Regress.js
index 9374d64e..c693206e 100644
--- a/installed-tests/js/modules/badOverrides/Regress.js
+++ b/installed-tests/js/modules/badOverrides/Regress.js
@@ -1,4 +1,5 @@
 // Sabotage the import of imports.gi.Regress!
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 function _init() {
     throw '💩';
diff --git a/installed-tests/js/modules/badOverrides/WarnLib.js 
b/installed-tests/js/modules/badOverrides/WarnLib.js
index e7626aef..74a2008e 100644
--- a/installed-tests/js/modules/badOverrides/WarnLib.js
+++ b/installed-tests/js/modules/badOverrides/WarnLib.js
@@ -1,3 +1,4 @@
 // Sabotage the import of imports.gi.WarnLib!
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 k$^s^%$#^*($%jdghdsfjkgd
diff --git a/installed-tests/js/modules/foobar.js b/installed-tests/js/modules/foobar.js
index 44b3deaa..7e27c619 100644
--- a/installed-tests/js/modules/foobar.js
+++ b/installed-tests/js/modules/foobar.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // simple test module (used by testImporter.js)
 
 /* eslint no-redeclare: ["error", { "builtinGlobals": false }] */ // for toString
diff --git a/installed-tests/js/modules/lexicalScope.js b/installed-tests/js/modules/lexicalScope.js
index 65429526..2b359e50 100644
--- a/installed-tests/js/modules/lexicalScope.js
+++ b/installed-tests/js/modules/lexicalScope.js
@@ -1,4 +1,5 @@
 /* exported a, b, c */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 // Tests bindings in the global scope (var) and lexical environment (let, const)
 
diff --git a/installed-tests/js/modules/modunicode.js b/installed-tests/js/modules/modunicode.js
index 55033455..157d03ef 100644
--- a/installed-tests/js/modules/modunicode.js
+++ b/installed-tests/js/modules/modunicode.js
@@ -1,4 +1,6 @@
 /* exported uval */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // This file is written in UTF-8.
 
 var uval = 'const ♥ utf8';
diff --git a/installed-tests/js/modules/mutualImport/a.js b/installed-tests/js/modules/mutualImport/a.js
index 253d3c2b..3a60c0e3 100644
--- a/installed-tests/js/modules/mutualImport/a.js
+++ b/installed-tests/js/modules/mutualImport/a.js
@@ -1,4 +1,5 @@
 /* exported getCount, getCountViaB, incrementCount */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 const B = imports.mutualImport.b;
 
diff --git a/installed-tests/js/modules/mutualImport/b.js b/installed-tests/js/modules/mutualImport/b.js
index d4817605..082ec031 100644
--- a/installed-tests/js/modules/mutualImport/b.js
+++ b/installed-tests/js/modules/mutualImport/b.js
@@ -1,4 +1,5 @@
 /* exported getCount */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 const A = imports.mutualImport.a;
 
diff --git a/installed-tests/js/modules/overrides/.eslintrc.yml 
b/installed-tests/js/modules/overrides/.eslintrc.yml
index 189476b0..c9faaeb6 100644
--- a/installed-tests/js/modules/overrides/.eslintrc.yml
+++ b/installed-tests/js/modules/overrides/.eslintrc.yml
@@ -1,4 +1,5 @@
 ---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 rules:
   no-unused-vars:
     - error
diff --git a/installed-tests/js/modules/overrides/GIMarshallingTests.js 
b/installed-tests/js/modules/overrides/GIMarshallingTests.js
index 7fee4285..fbbba3aa 100644
--- a/installed-tests/js/modules/overrides/GIMarshallingTests.js
+++ b/installed-tests/js/modules/overrides/GIMarshallingTests.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 function _init() {
     const GIMarshallingTests = this;
 
diff --git a/installed-tests/js/modules/subA/subB/__init__.js 
b/installed-tests/js/modules/subA/subB/__init__.js
index 671cffc8..f14e5cac 100644
--- a/installed-tests/js/modules/subA/subB/__init__.js
+++ b/installed-tests/js/modules/subA/subB/__init__.js
@@ -1,4 +1,5 @@
 /* exported ImporterClass, testImporterFunction */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 function testImporterFunction() {
     return '__init__ function tested';
diff --git a/installed-tests/js/modules/subA/subB/foobar.js b/installed-tests/js/modules/subA/subB/foobar.js
index 92c69b3f..ebfb8c13 100644
--- a/installed-tests/js/modules/subA/subB/foobar.js
+++ b/installed-tests/js/modules/subA/subB/foobar.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // simple test module (used by testImporter.js)
 
 /* exported bar, foo */
diff --git a/installed-tests/js/org.gnome.GjsTest.gschema.xml 
b/installed-tests/js/org.gnome.GjsTest.gschema.xml
index 4d5df08f..abe09625 100644
--- a/installed-tests/js/org.gnome.GjsTest.gschema.xml
+++ b/installed-tests/js/org.gnome.GjsTest.gschema.xml
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -->
 <schemalist>
   <schema id="org.gnome.GjsTest" path="/org/gnome/GjsTest/">
     <key name="window-size" type="(ii)">
diff --git a/installed-tests/js/testByteArray.js b/installed-tests/js/testByteArray.js
index 018a0589..001f0fbe 100644
--- a/installed-tests/js/testByteArray.js
+++ b/installed-tests/js/testByteArray.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const ByteArray = imports.byteArray;
 const {GIMarshallingTests, GLib} = imports.gi;
 
diff --git a/installed-tests/js/testCairo.js b/installed-tests/js/testCairo.js
index 78f0efbf..d1a9903d 100644
--- a/installed-tests/js/testCairo.js
+++ b/installed-tests/js/testCairo.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 imports.gi.versions.Gdk = '3.0';
 imports.gi.versions.Gtk = '3.0';
 
diff --git a/installed-tests/js/testExceptions.js b/installed-tests/js/testExceptions.js
index abcfeb47..2b8c57fe 100644
--- a/installed-tests/js/testExceptions.js
+++ b/installed-tests/js/testExceptions.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const {GIMarshallingTests, Gio, GLib, GObject} = imports.gi;
 
 const Foo = GObject.registerClass({
diff --git a/installed-tests/js/testFormat.js b/installed-tests/js/testFormat.js
index 72d20288..c11c3549 100644
--- a/installed-tests/js/testFormat.js
+++ b/installed-tests/js/testFormat.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const Format = imports.format;
 String.prototype.format = Format.format;
 
diff --git a/installed-tests/js/testFundamental.js b/installed-tests/js/testFundamental.js
index 6384793a..17fb2d27 100644
--- a/installed-tests/js/testFundamental.js
+++ b/installed-tests/js/testFundamental.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const {GObject, Regress} = imports.gi;
 
 describe('Fundamental type support', function () {
diff --git a/installed-tests/js/testGDBus.js b/installed-tests/js/testGDBus.js
index 4ab512aa..7317a665 100644
--- a/installed-tests/js/testGDBus.js
+++ b/installed-tests/js/testGDBus.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const ByteArray = imports.byteArray;
 const {Gio, GjsPrivate, GLib} = imports.gi;
 
diff --git a/installed-tests/js/testGIMarshalling.js b/installed-tests/js/testGIMarshalling.js
index 97a0030d..ddc427c3 100644
--- a/installed-tests/js/testGIMarshalling.js
+++ b/installed-tests/js/testGIMarshalling.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // Load overrides for GIMarshallingTests
 imports.overrides.searchPath.unshift('resource:///org/gjs/jsunit/modules/overrides');
 
diff --git a/installed-tests/js/testGLib.js b/installed-tests/js/testGLib.js
index d25e3785..e47cafdf 100644
--- a/installed-tests/js/testGLib.js
+++ b/installed-tests/js/testGLib.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const ByteArray = imports.byteArray;
 const GLib = imports.gi.GLib;
 
diff --git a/installed-tests/js/testGObject.js b/installed-tests/js/testGObject.js
index 49bbba31..020d17ab 100644
--- a/installed-tests/js/testGObject.js
+++ b/installed-tests/js/testGObject.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // This is where overrides in modules/core/overrides/GObject.js are tested,
 // except for the class machinery, interface machinery, and GObject.ParamSpec,
 // which are big enough to get their own files.
diff --git a/installed-tests/js/testGObjectClass.js b/installed-tests/js/testGObjectClass.js
index cd89a9f5..27bf756d 100644
--- a/installed-tests/js/testGObjectClass.js
+++ b/installed-tests/js/testGObjectClass.js
@@ -1,4 +1,6 @@
 // -*- mode: js; indent-tabs-mode: nil -*-
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 imports.gi.versions.Gtk = '3.0';
 
 const Gio = imports.gi.Gio;
diff --git a/installed-tests/js/testGObjectDestructionAccess.js 
b/installed-tests/js/testGObjectDestructionAccess.js
index 12079b95..bf72d3e2 100644
--- a/installed-tests/js/testGObjectDestructionAccess.js
+++ b/installed-tests/js/testGObjectDestructionAccess.js
@@ -1,4 +1,6 @@
 // -*- mode: js; indent-tabs-mode: nil -*-
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 imports.gi.versions.Gtk = '3.0';
 
 const GLib = imports.gi.GLib;
diff --git a/installed-tests/js/testGObjectInterface.js b/installed-tests/js/testGObjectInterface.js
index 2574d936..0c98550d 100644
--- a/installed-tests/js/testGObjectInterface.js
+++ b/installed-tests/js/testGObjectInterface.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const Gio = imports.gi.Gio;
 const GLib = imports.gi.GLib;
 const GObject = imports.gi.GObject;
diff --git a/installed-tests/js/testGTypeClass.js b/installed-tests/js/testGTypeClass.js
index 3bfe2cd3..fe73c4bb 100644
--- a/installed-tests/js/testGTypeClass.js
+++ b/installed-tests/js/testGTypeClass.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // We use Gio to have some objects that we know exist
 const Gio = imports.gi.Gio;
 const GObject = imports.gi.GObject;
diff --git a/installed-tests/js/testGettext.js b/installed-tests/js/testGettext.js
index 2496292d..ae129ff3 100644
--- a/installed-tests/js/testGettext.js
+++ b/installed-tests/js/testGettext.js
@@ -1,4 +1,5 @@
 // -*- mode: js; indent-tabs-mode: nil -*-
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 const Gettext = imports.gettext;
 
diff --git a/installed-tests/js/testGio.js b/installed-tests/js/testGio.js
index 11ff46dc..721d47f8 100644
--- a/installed-tests/js/testGio.js
+++ b/installed-tests/js/testGio.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const {GLib, Gio, GObject} = imports.gi;
 
 const Foo = GObject.registerClass({
diff --git a/installed-tests/js/testGtk3.js b/installed-tests/js/testGtk3.js
index 288bdbdc..5a781567 100644
--- a/installed-tests/js/testGtk3.js
+++ b/installed-tests/js/testGtk3.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 imports.gi.versions.Gtk = '3.0';
 
 const ByteArray = imports.byteArray;
diff --git a/installed-tests/js/testGtk4.js b/installed-tests/js/testGtk4.js
index 8aac724a..364cc6cc 100644
--- a/installed-tests/js/testGtk4.js
+++ b/installed-tests/js/testGtk4.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 imports.gi.versions.Gtk = '4.0';
 
 const ByteArray = imports.byteArray;
diff --git a/installed-tests/js/testImporter.js b/installed-tests/js/testImporter.js
index 31582a7e..1c13c7d3 100644
--- a/installed-tests/js/testImporter.js
+++ b/installed-tests/js/testImporter.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 describe('GI importer', function () {
     it('can import GI modules', function () {
         var GLib = imports.gi.GLib;
diff --git a/installed-tests/js/testIntrospection.js b/installed-tests/js/testIntrospection.js
index 3f96139c..83961d8a 100644
--- a/installed-tests/js/testIntrospection.js
+++ b/installed-tests/js/testIntrospection.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // Various tests having to do with how introspection is implemented in GJS
 
 imports.gi.versions.Gdk = '3.0';
diff --git a/installed-tests/js/testLang.js b/installed-tests/js/testLang.js
index 180e1463..71ec1a85 100644
--- a/installed-tests/js/testLang.js
+++ b/installed-tests/js/testLang.js
@@ -1,4 +1,6 @@
 /* eslint-disable no-restricted-properties */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // tests for imports.lang module
 // except for Lang.Class and Lang.Interface, which are tested in testLegacyClass
 
diff --git a/installed-tests/js/testLegacyByteArray.js b/installed-tests/js/testLegacyByteArray.js
index 39102737..25c1784e 100644
--- a/installed-tests/js/testLegacyByteArray.js
+++ b/installed-tests/js/testLegacyByteArray.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const ByteArray = imports.byteArray;
 const GIMarshallingTests = imports.gi.GIMarshallingTests;
 
diff --git a/installed-tests/js/testLegacyClass.js b/installed-tests/js/testLegacyClass.js
index 1599508c..54a40d63 100644
--- a/installed-tests/js/testLegacyClass.js
+++ b/installed-tests/js/testLegacyClass.js
@@ -1,5 +1,6 @@
 // -*- mode: js; indent-tabs-mode: nil -*-
 /* eslint-disable no-restricted-properties */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 const Lang = imports.lang;
 
diff --git a/installed-tests/js/testLegacyGObject.js b/installed-tests/js/testLegacyGObject.js
index 562c7f18..d32af34b 100644
--- a/installed-tests/js/testLegacyGObject.js
+++ b/installed-tests/js/testLegacyGObject.js
@@ -1,5 +1,6 @@
 // -*- mode: js; indent-tabs-mode: nil -*-
 /* eslint-disable no-restricted-properties */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 imports.gi.versions.Gtk = '3.0';
 
diff --git a/installed-tests/js/testLegacyGtk.js b/installed-tests/js/testLegacyGtk.js
index 198d5c3b..7766bedf 100644
--- a/installed-tests/js/testLegacyGtk.js
+++ b/installed-tests/js/testLegacyGtk.js
@@ -1,5 +1,6 @@
 // -*- mode: js; indent-tabs-mode: nil -*-
 /* eslint-disable no-restricted-properties */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 imports.gi.versions.Gtk = '3.0';
 
diff --git a/installed-tests/js/testMainloop.js b/installed-tests/js/testMainloop.js
index aff3d5aa..21b1da3d 100644
--- a/installed-tests/js/testMainloop.js
+++ b/installed-tests/js/testMainloop.js
@@ -1,4 +1,5 @@
 /* eslint-disable no-restricted-properties */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 const Mainloop = imports.mainloop;
 
diff --git a/installed-tests/js/testNamespace.js b/installed-tests/js/testNamespace.js
index 49c6426b..058aaba9 100644
--- a/installed-tests/js/testNamespace.js
+++ b/installed-tests/js/testNamespace.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const Regress = imports.gi.Regress;
 
 describe('GI repository namespace', function () {
diff --git a/installed-tests/js/testPackage.js b/installed-tests/js/testPackage.js
index bcaf3db4..9f2a7a99 100644
--- a/installed-tests/js/testPackage.js
+++ b/installed-tests/js/testPackage.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const Pkg = imports.package;
 
 describe('Package module', function () {
diff --git a/installed-tests/js/testParamSpec.js b/installed-tests/js/testParamSpec.js
index 1382a450..4c25cf84 100644
--- a/installed-tests/js/testParamSpec.js
+++ b/installed-tests/js/testParamSpec.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const Regress = imports.gi.Regress;
 const GObject = imports.gi.GObject;
 
diff --git a/installed-tests/js/testPrint.js b/installed-tests/js/testPrint.js
index c42b0003..b96ab7aa 100644
--- a/installed-tests/js/testPrint.js
+++ b/installed-tests/js/testPrint.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 describe('print', function () {
     it('can be spied upon', function () {
         spyOn(globalThis, 'print');
diff --git a/installed-tests/js/testRegress.js b/installed-tests/js/testRegress.js
index 32ca5bba..10763989 100644
--- a/installed-tests/js/testRegress.js
+++ b/installed-tests/js/testRegress.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const Regress = imports.gi.Regress;
 
 // We use Gio to have some objects that we know exist
diff --git a/installed-tests/js/testSignals.js b/installed-tests/js/testSignals.js
index 93668633..dda016c3 100644
--- a/installed-tests/js/testSignals.js
+++ b/installed-tests/js/testSignals.js
@@ -1,4 +1,5 @@
 /* eslint-disable no-restricted-properties */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 const GLib = imports.gi.GLib;
 const Lang = imports.lang;
diff --git a/installed-tests/js/testSystem.js b/installed-tests/js/testSystem.js
index ad6732f5..4bfc0269 100644
--- a/installed-tests/js/testSystem.js
+++ b/installed-tests/js/testSystem.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const System = imports.system;
 const GObject = imports.gi.GObject;
 
diff --git a/installed-tests/js/testTweener.js b/installed-tests/js/testTweener.js
index 1f6efe57..76803dee 100644
--- a/installed-tests/js/testTweener.js
+++ b/installed-tests/js/testTweener.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 const Tweener = imports.tweener.tweener;
 
 function installFrameTicker() {
diff --git a/installed-tests/js/testWarnLib.js b/installed-tests/js/testWarnLib.js
index 40971868..de130fb8 100644
--- a/installed-tests/js/testWarnLib.js
+++ b/installed-tests/js/testWarnLib.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // File with tests from the WarnLib-1.0.gir test suite from GI
 
 const {Gio, GObject, WarnLib} = imports.gi;
diff --git a/installed-tests/js/testself.js b/installed-tests/js/testself.js
index 6f748a4b..d01b0b58 100644
--- a/installed-tests/js/testself.js
+++ b/installed-tests/js/testself.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 describe('Test harness internal consistency', function () {
     it('', function () {
         var someUndefined;
diff --git a/installed-tests/meson.build b/installed-tests/meson.build
index 04c7910f..3d328b53 100644
--- a/installed-tests/meson.build
+++ b/installed-tests/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 ### Installed tests ############################################################
 
 installed_tests_execdir = get_option('prefix') / get_option('libexecdir') / 'installed-tests' / 
meson.project_name()
diff --git a/installed-tests/minijasmine.test.in b/installed-tests/minijasmine.test.in
index f3b8d5b2..fe3531c9 100644
--- a/installed-tests/minijasmine.test.in
+++ b/installed-tests/minijasmine.test.in
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 [Test]
 Type=session
 Exec=@installed_tests_execdir@/minijasmine @installed_tests_execdir@/js/@name@
diff --git a/installed-tests/script.test.in b/installed-tests/script.test.in
index 03c1b059..3604ca0c 100644
--- a/installed-tests/script.test.in
+++ b/installed-tests/script.test.in
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 [Test]
 Type=session
 Exec=sh @installed_tests_execdir@/scripts/@name@
diff --git a/installed-tests/scripts/common.sh b/installed-tests/scripts/common.sh
index 8f228194..d8b50017 100755
--- a/installed-tests/scripts/common.sh
+++ b/installed-tests/scripts/common.sh
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then
     gjs="$TOP_BUILDDIR/gjs-console"
diff --git a/installed-tests/scripts/testCommandLine.sh b/installed-tests/scripts/testCommandLine.sh
index 7769b3b7..89a88595 100755
--- a/installed-tests/scripts/testCommandLine.sh
+++ b/installed-tests/scripts/testCommandLine.sh
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then
     gjs="$TOP_BUILDDIR/gjs-console"
diff --git a/installed-tests/scripts/testExamples.sh b/installed-tests/scripts/testExamples.sh
index 25529071..ef22a98a 100755
--- a/installed-tests/scripts/testExamples.sh
+++ b/installed-tests/scripts/testExamples.sh
@@ -1,4 +1,6 @@
 #!/bin/bash
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 DIR="$( cd "$( dirname "${0}" )" && pwd )"
 source "${DIR}"/common.sh
 
diff --git a/installed-tests/scripts/testWarnings.sh b/installed-tests/scripts/testWarnings.sh
index 30ca082f..ea820d97 100755
--- a/installed-tests/scripts/testWarnings.sh
+++ b/installed-tests/scripts/testWarnings.sh
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then
     gjs="$TOP_BUILDDIR/gjs-console"
diff --git a/js.gresource.xml b/js.gresource.xml
index f0c3b934..c6b9210c 100644
--- a/js.gresource.xml
+++ b/js.gresource.xml
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -->
 <gresources>
   <gresource prefix="/org/gnome/gjs">
     <!-- Script-based Modules -->
diff --git a/libgjs-private/gjs-gdbus-wrapper.c b/libgjs-private/gjs-gdbus-wrapper.c
index b6bfd0e8..b56fbd11 100644
--- a/libgjs-private/gjs-gdbus-wrapper.c
+++ b/libgjs-private/gjs-gdbus-wrapper.c
@@ -1,5 +1,6 @@
 /* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
 /*
+ * SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
  * SPDX-FileCopyrightText: 2011 Giovanni Campagna
  */
 
diff --git a/libgjs.map b/libgjs.map
index cef1fea7..04c714a8 100644
--- a/libgjs.map
+++ b/libgjs.map
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT OR LGPL-2.0-or-later */
 {
 global:
     gjs_*;
diff --git a/libgjs.symbols b/libgjs.symbols
index a78269ef..b713bdc0 100644
--- a/libgjs.symbols
+++ b/libgjs.symbols
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 # Workaround for https://github.com/mesonbuild/meson/issues/3047
 # Linker scripts are not understood by the macOS linker, we need to use a
 # symbol export file instead.
diff --git a/meson.build b/meson.build
index 73de8488..2f0d0f00 100644
--- a/meson.build
+++ b/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 project('gjs', 'cpp', 'c', version: '1.67.1', license: ['MIT', 'LGPL2+'],
     meson_version: '>= 0.52.0',
     default_options: ['cpp_std=c++17', 'c_std=c99', 'warning_level=2'])
diff --git a/meson_options.txt b/meson_options.txt
index 825ba77a..6ac86a99 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 # Features
 
 option('cairo', type: 'feature', value: 'auto',
diff --git a/modules/core/_format.js b/modules/core/_format.js
index 0df3b4ac..9c005b45 100644
--- a/modules/core/_format.js
+++ b/modules/core/_format.js
@@ -1,4 +1,5 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 /* exported vprintf */
 
diff --git a/modules/core/overrides/.eslintrc.yml b/modules/core/overrides/.eslintrc.yml
index 189476b0..c9faaeb6 100644
--- a/modules/core/overrides/.eslintrc.yml
+++ b/modules/core/overrides/.eslintrc.yml
@@ -1,4 +1,5 @@
 ---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 rules:
   no-unused-vars:
     - error
diff --git a/modules/core/overrides/cairo.js b/modules/core/overrides/cairo.js
index 0f366a8d..b34130b2 100644
--- a/modules/core/overrides/cairo.js
+++ b/modules/core/overrides/cairo.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 // This override adds the builtin Cairo bindings to imports.gi.cairo.
 // (It's confusing to have two incompatible ways to import Cairo.)
 
diff --git a/modules/script/_bootstrap/.eslintrc.yml b/modules/script/_bootstrap/.eslintrc.yml
index 9cad1d14..420f17ab 100644
--- a/modules/script/_bootstrap/.eslintrc.yml
+++ b/modules/script/_bootstrap/.eslintrc.yml
@@ -1,4 +1,5 @@
 ---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 extends: "../../../.eslintrc.yml"
 globals:
   log: "off"
diff --git a/modules/script/_bootstrap/coverage.js b/modules/script/_bootstrap/coverage.js
index 7cc58a6f..bf5d4468 100644
--- a/modules/script/_bootstrap/coverage.js
+++ b/modules/script/_bootstrap/coverage.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 (function (exports) {
     'use strict';
 
diff --git a/modules/script/_bootstrap/default.js b/modules/script/_bootstrap/default.js
index 4c1fb179..eb042d49 100644
--- a/modules/script/_bootstrap/default.js
+++ b/modules/script/_bootstrap/default.js
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 (function (exports) {
     'use strict';
 
diff --git a/modules/script/byteArray.js b/modules/script/byteArray.js
index 53a49f5b..c8475856 100644
--- a/modules/script/byteArray.js
+++ b/modules/script/byteArray.js
@@ -1,4 +1,5 @@
 /* exported ByteArray, fromArray, fromGBytes, fromString, toGBytes, toString */
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 /* eslint no-redeclare: ["error", { "builtinGlobals": false }] */  // for toString
 var {fromGBytes, fromString, toGBytes, toString} = imports._byteArrayNative;
diff --git a/modules/script/format.js b/modules/script/format.js
index a02fbe28..196b5169 100644
--- a/modules/script/format.js
+++ b/modules/script/format.js
@@ -1,4 +1,5 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 /* exported format, printf, vprintf */
 
diff --git a/subprojects/.gitignore b/subprojects/.gitignore
index 931b8279..24e358b7 100644
--- a/subprojects/.gitignore
+++ b/subprojects/.gitignore
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 glib
 gobject-introspection
 libffi
diff --git a/subprojects/glib.wrap b/subprojects/glib.wrap
index e4de7eed..735501b6 100644
--- a/subprojects/glib.wrap
+++ b/subprojects/glib.wrap
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 [wrap-git]
 directory=glib
 url=https://gitlab.gnome.org/GNOME/glib.git
diff --git a/subprojects/gobject-introspection.wrap b/subprojects/gobject-introspection.wrap
index 108b80c8..88aa915a 100644
--- a/subprojects/gobject-introspection.wrap
+++ b/subprojects/gobject-introspection.wrap
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 [wrap-git]
 directory=gobject-introspection
 url=https://gitlab.gnome.org/GNOME/gobject-introspection.git
diff --git a/test/extra/Dockerfile b/test/extra/Dockerfile
index 92db73ad..49cbea71 100644
--- a/test/extra/Dockerfile
+++ b/test/extra/Dockerfile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 # === Build Spidermonkey stage ===
 
 FROM fedora:32 AS mozjs-build
diff --git a/test/extra/Dockerfile.alpine.cpplint b/test/extra/Dockerfile.alpine.cpplint
index c5c30855..68de2686 100644
--- a/test/extra/Dockerfile.alpine.cpplint
+++ b/test/extra/Dockerfile.alpine.cpplint
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 # SPDX-FileCopyrightText: 2018 Claudio André
 
 FROM alpine:latest
diff --git a/test/extra/Dockerfile.debug b/test/extra/Dockerfile.debug
index e80fbfa1..e346abd7 100644
--- a/test/extra/Dockerfile.debug
+++ b/test/extra/Dockerfile.debug
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 # === Build stage ===
 
 FROM fedora:32 AS build
diff --git a/test/extra/do_environment.sh b/test/extra/do_environment.sh
index 871114ee..3c842530 100755
--- a/test/extra/do_environment.sh
+++ b/test/extra/do_environment.sh
@@ -1,4 +1,5 @@
 #!/bin/sh -e
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 do_Print_Labels () {
     if test -n "$1"; then
diff --git a/test/gjs-test-call-args.cpp b/test/gjs-test-call-args.cpp
index 584745e9..35271d9c 100644
--- a/test/gjs-test-call-args.cpp
+++ b/test/gjs-test-call-args.cpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 #include <config.h>
 
 #include <stdint.h>
diff --git a/test/gjs-test-coverage/loadedJSFromResource.js b/test/gjs-test-coverage/loadedJSFromResource.js
index dca16dd1..f8bc8df8 100644
--- a/test/gjs-test-coverage/loadedJSFromResource.js
+++ b/test/gjs-test-coverage/loadedJSFromResource.js
@@ -1,2 +1,4 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 /* exported mockFunction */
 function mockFunction() {}
diff --git a/test/gjs-test-rooting.cpp b/test/gjs-test-rooting.cpp
index 141d479d..06191e66 100644
--- a/test/gjs-test-rooting.cpp
+++ b/test/gjs-test-rooting.cpp
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 #include <config.h>
 
 #include <glib.h>
diff --git a/test/meson.build b/test/meson.build
index 8cea4989..293237c8 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+
 ### Unit tests #################################################################
 
 mock_js_resources_files = gnome.compile_resources('mock-js-resources',
diff --git a/test/mock-js-resources.gresource.xml b/test/mock-js-resources.gresource.xml
index 196f6391..1bcf5736 100644
--- a/test/mock-js-resources.gresource.xml
+++ b/test/mock-js-resources.gresource.xml
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -->
 <gresources>
   <gresource prefix="/org/gnome/gjs/mock">
     <file>test/gjs-test-coverage/loadedJSFromResource.js</file>
diff --git a/test/test-bus.conf b/test/test-bus.conf
index 05cd7431..b41110eb 100644
--- a/test/test-bus.conf
+++ b/test/test-bus.conf
@@ -1,3 +1,4 @@
+<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -->
 <!-- Configuration file for a dbus daemon we run for test purposes -->
 
 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
diff --git a/test/test-ci.sh b/test/test-ci.sh
index 0f115875..430868a5 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -1,4 +1,5 @@
 #!/bin/sh -e
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 do_Set_Env () {
     #Save cache on $pwd (required by artifacts)
diff --git a/tools/gjs-private-iwyu.imp b/tools/gjs-private-iwyu.imp
index 8682a595..65ab4ce2 100644
--- a/tools/gjs-private-iwyu.imp
+++ b/tools/gjs-private-iwyu.imp
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 # IWYU mapping file for files that are part of libgjs
 [
   {"include": ["<bits/std_abs.h>", "private", "<stdlib.h>", "public"]},
diff --git a/tools/gjs-public-iwyu.imp b/tools/gjs-public-iwyu.imp
index 7f805e4b..2ca8fcf7 100644
--- a/tools/gjs-public-iwyu.imp
+++ b/tools/gjs-public-iwyu.imp
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 # IWYU mapping file for files that use the API of libgjs
 [
   {"ref": "gjs-private-iwyu.imp"},
diff --git a/tools/process_iwyu.py b/tools/process_iwyu.py
index 1e63ac1d..9c991f7a 100755
--- a/tools/process_iwyu.py
+++ b/tools/process_iwyu.py
@@ -1,4 +1,5 @@
 # coding: utf8
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 # IWYU is missing the feature to designate a certain header as a "forward-decls
 # header". In the case of SpiderMonkey, there are certain commonly used forward
diff --git a/tools/run_coverage.sh b/tools/run_coverage.sh
index 65102b99..5691444c 100755
--- a/tools/run_coverage.sh
+++ b/tools/run_coverage.sh
@@ -1,4 +1,5 @@
 #!/bin/bash
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 SOURCEDIR=$(pwd)
 GIDATADIR=$(pkg-config --variable=gidatadir gobject-introspection-1.0)
diff --git a/tools/run_cppcheck.sh b/tools/run_cppcheck.sh
index 68c8c8a5..aa17293e 100755
--- a/tools/run_cppcheck.sh
+++ b/tools/run_cppcheck.sh
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 ninja -C _build
 cppcheck --project=_build/compile_commands.json --inline-suppr \
diff --git a/tools/run_iwyu.sh b/tools/run_iwyu.sh
index 63943c00..1f6a10bb 100755
--- a/tools/run_iwyu.sh
+++ b/tools/run_iwyu.sh
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 
 SRCDIR=$(pwd)
 


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