diff options
| author | Philip Chimento <philip.chimento@gmail.com> | 2020-09-05 21:36:16 -0700 |
|---|---|---|
| committer | Philip Chimento <philip.chimento@gmail.com> | 2020-10-04 16:36:09 -0700 |
| commit | cd9fd1dfdacd19b3a08f15f7e70c1974337cca5e (patch) | |
| tree | cd96780a9be7240add9306ea627392ae85d5bf4d /installed-tests | |
| parent | 015a4d4ca235830736b014363f7df40a56ace66d (diff) | |
| download | gjs-cd9fd1dfdacd19b3a08f15f7e70c1974337cca5e.tar.gz | |
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.)
Diffstat (limited to 'installed-tests')
69 files changed, 111 insertions, 1 deletions
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" |
