summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-10-17 18:13:06 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-10-18 09:04:45 +0200
commit7b3cec95db777f1f739687c385d59ac904e7553e (patch)
treeb90749b10c53eae404d15cd2d0ccc125544093e3
parenttests: add spdx license header to test unit/link/network/conf files (diff)
downloadsystemd-7b3cec95db777f1f739687c385d59ac904e7553e.tar.xz
systemd-7b3cec95db777f1f739687c385d59ac904e7553e.zip
tests: add spdx headers to scripts and Makefiles
-rw-r--r--test/TEST-01-BASIC/Makefile2
-rwxr-xr-xtest/TEST-01-BASIC/test.sh1
-rwxr-xr-xtest/TEST-02-UNITTESTS/test.sh1
-rwxr-xr-xtest/TEST-03-JOBS/test.sh1
-rwxr-xr-xtest/TEST-04-JOURNAL/test.sh1
-rwxr-xr-xtest/TEST-05-RLIMITS/test.sh1
-rwxr-xr-xtest/TEST-06-SELINUX/test.sh1
-rwxr-xr-xtest/TEST-07-ISSUE-1981/test.sh1
-rwxr-xr-xtest/TEST-08-ISSUE-2730/test.sh1
-rwxr-xr-xtest/TEST-09-ISSUE-2691/test.sh1
-rwxr-xr-xtest/TEST-10-ISSUE-2467/test.sh1
-rwxr-xr-xtest/TEST-11-ISSUE-3166/test.sh1
-rwxr-xr-xtest/TEST-12-ISSUE-3171/test.sh1
-rwxr-xr-xtest/TEST-13-NSPAWN-SMOKE/test.sh1
-rwxr-xr-xtest/TEST-14-MACHINE-ID/test.sh1
-rwxr-xr-xtest/TEST-15-DROPIN/test.sh1
-rwxr-xr-xtest/TEST-16-EXTEND-TIMEOUT/test.sh1
-rwxr-xr-xtest/TEST-17-UDEV/test.sh1
-rwxr-xr-xtest/TEST-18-FAILUREACTION/test.sh1
-rwxr-xr-xtest/TEST-19-DELEGATE/test.sh1
-rwxr-xr-xtest/TEST-20-MAINPIDGAMES/test.sh1
-rwxr-xr-xtest/TEST-22-TMPFILES/test.sh1
-rwxr-xr-xtest/TEST-23-TYPE-EXEC/test.sh1
-rwxr-xr-xtest/TEST-24-CRYPTSETUP/test.sh1
-rwxr-xr-xtest/TEST-25-IMPORT/test.sh1
-rwxr-xr-xtest/TEST-26-SETENV/test.sh1
-rwxr-xr-xtest/TEST-27-STDOUTFILE/test.sh1
-rwxr-xr-xtest/TEST-28-PERCENTJ-WANTEDBY/test.sh1
-rwxr-xr-xtest/TEST-29-PORTABLE/test.sh1
-rwxr-xr-xtest/TEST-30-ONCLOCKCHANGE/test.sh1
-rwxr-xr-xtest/TEST-31-DEVICE-ENUMERATION/test.sh1
-rwxr-xr-xtest/TEST-32-OOMPOLICY/test.sh1
-rwxr-xr-xtest/TEST-33-CLEAN-UNIT/test.sh1
-rwxr-xr-xtest/TEST-34-DYNAMICUSERMIGRATE/test.sh1
-rwxr-xr-xtest/TEST-36-NUMAPOLICY/test.sh1
-rwxr-xr-xtest/TEST-37-RUNTIMEDIRECTORYPRESERVE/test.sh1
-rwxr-xr-xtest/TEST-38-FREEZER/test.sh1
-rwxr-xr-xtest/TEST-39-EXECRELOAD/test.sh1
-rwxr-xr-xtest/TEST-40-EXEC-COMMAND-EX/test.sh1
-rwxr-xr-xtest/TEST-41-ONESHOT-RESTART/test.sh1
-rwxr-xr-xtest/TEST-42-EXECSTOPPOST/test.sh1
-rwxr-xr-xtest/TEST-43-PRIVATEUSER-UNPRIV/test.sh1
-rwxr-xr-xtest/TEST-44-LOG-NAMESPACE/test.sh1
-rwxr-xr-xtest/TEST-46-HOMED/test.sh1
-rwxr-xr-xtest/TEST-47-ISSUE-14566/test.sh1
-rwxr-xr-xtest/TEST-48-START-STOP-NO-RELOAD/test.sh1
-rwxr-xr-xtest/TEST-49-RUNTIME-BIND-PATHS/test.sh1
-rwxr-xr-xtest/TEST-50-DISSECT/test.sh1
-rwxr-xr-xtest/TEST-51-ISSUE-16115/test.sh1
-rwxr-xr-xtest/TEST-52-HONORFIRSTSHUTDOWN/test.sh1
-rwxr-xr-xtest/TEST-53-ISSUE-16347/test.sh1
-rwxr-xr-xtest/TEST-54-CREDS/test.sh1
-rwxr-xr-xtest/TEST-55-OOMD/test.sh1
-rwxr-xr-xtest/TEST-57-ONSUCCESS-UPHOLD/test.sh1
-rwxr-xr-xtest/TEST-58-REPART/test.sh1
-rwxr-xr-xtest/TEST-59-RELOADING-RESTART/test.sh1
-rwxr-xr-xtest/TEST-60-MOUNT-RATELIMIT/test.sh1
-rwxr-xr-xtest/TEST-61-UNITTESTS-QEMU/test.sh1
-rwxr-xr-xtest/TEST-62-RESTRICT-IFACES/test.sh1
-rwxr-xr-xtest/TEST-63-ISSUE-17433/test.sh1
-rwxr-xr-xtest/TEST-64-UDEV-STORAGE/test.sh1
-rwxr-xr-xtest/TEST-65-ANALYZE/test.sh1
-rwxr-xr-xtest/TEST-66-DEVICE-ISOLATION/test.sh1
-rwxr-xr-xtest/test-path-util/script.sh1
-rwxr-xr-xtest/units/testsuite-02.sh1
-rwxr-xr-xtest/units/testsuite-03.sh1
-rwxr-xr-xtest/units/testsuite-04.sh1
-rwxr-xr-xtest/units/testsuite-05.sh1
-rwxr-xr-xtest/units/testsuite-06.sh1
-rwxr-xr-xtest/units/testsuite-07.sh1
-rwxr-xr-xtest/units/testsuite-11.sh1
-rwxr-xr-xtest/units/testsuite-12.sh1
-rwxr-xr-xtest/units/testsuite-13.sh1
-rwxr-xr-xtest/units/testsuite-14.sh1
-rwxr-xr-xtest/units/testsuite-15.sh1
-rwxr-xr-xtest/units/testsuite-16.sh1
-rwxr-xr-xtest/units/testsuite-17.01.sh1
-rwxr-xr-xtest/units/testsuite-17.02.sh1
-rwxr-xr-xtest/units/testsuite-17.03.sh2
-rwxr-xr-xtest/units/testsuite-17.04.sh1
-rwxr-xr-xtest/units/testsuite-17.05.sh1
-rwxr-xr-xtest/units/testsuite-17.06.sh1
-rwxr-xr-xtest/units/testsuite-17.sh2
-rwxr-xr-xtest/units/testsuite-18.sh1
-rwxr-xr-xtest/units/testsuite-19.sh1
-rwxr-xr-xtest/units/testsuite-20.sh1
-rwxr-xr-xtest/units/testsuite-22.01.sh3
-rwxr-xr-xtest/units/testsuite-22.02.sh3
-rwxr-xr-xtest/units/testsuite-22.03.sh3
-rwxr-xr-xtest/units/testsuite-22.04.sh3
-rwxr-xr-xtest/units/testsuite-22.05.sh2
-rwxr-xr-xtest/units/testsuite-22.06.sh3
-rwxr-xr-xtest/units/testsuite-22.07.sh3
-rwxr-xr-xtest/units/testsuite-22.08.sh3
-rwxr-xr-xtest/units/testsuite-22.09.sh2
-rwxr-xr-xtest/units/testsuite-22.10.sh2
-rwxr-xr-xtest/units/testsuite-22.11.sh2
-rwxr-xr-xtest/units/testsuite-22.12.sh4
-rwxr-xr-xtest/units/testsuite-22.sh2
-rwxr-xr-xtest/units/testsuite-23.sh1
-rwxr-xr-xtest/units/testsuite-25.sh1
-rwxr-xr-xtest/units/testsuite-26.sh1
-rwxr-xr-xtest/units/testsuite-27.sh1
-rwxr-xr-xtest/units/testsuite-29.sh1
-rwxr-xr-xtest/units/testsuite-30.sh1
-rwxr-xr-xtest/units/testsuite-31.sh1
-rwxr-xr-xtest/units/testsuite-32.sh1
-rwxr-xr-xtest/units/testsuite-33.sh1
-rwxr-xr-xtest/units/testsuite-34.sh1
-rwxr-xr-xtest/units/testsuite-36.sh1
-rwxr-xr-xtest/units/testsuite-37.sh1
-rwxr-xr-xtest/units/testsuite-38.sh1
-rwxr-xr-xtest/units/testsuite-39.sh2
-rwxr-xr-xtest/units/testsuite-40.sh1
-rwxr-xr-xtest/units/testsuite-41.sh1
-rwxr-xr-xtest/units/testsuite-42.sh1
-rwxr-xr-xtest/units/testsuite-43.sh1
-rwxr-xr-xtest/units/testsuite-44.sh1
-rwxr-xr-xtest/units/testsuite-46.sh1
-rwxr-xr-xtest/units/testsuite-47-repro.sh1
-rwxr-xr-xtest/units/testsuite-47.sh1
-rwxr-xr-xtest/units/testsuite-48.sh1
-rwxr-xr-xtest/units/testsuite-49.sh1
-rwxr-xr-xtest/units/testsuite-50.sh1
-rwxr-xr-xtest/units/testsuite-51.sh1
-rwxr-xr-xtest/units/testsuite-52.sh1
-rwxr-xr-xtest/units/testsuite-53.sh1
-rwxr-xr-xtest/units/testsuite-54.sh1
-rwxr-xr-xtest/units/testsuite-55-slowgrowth.sh1
-rwxr-xr-xtest/units/testsuite-55.sh1
-rwxr-xr-xtest/units/testsuite-57-short-lived.sh2
-rwxr-xr-xtest/units/testsuite-57.sh1
-rwxr-xr-xtest/units/testsuite-58.sh1
-rwxr-xr-xtest/units/testsuite-59.sh1
-rwxr-xr-xtest/units/testsuite-60.sh1
-rwxr-xr-xtest/units/testsuite-61.sh1
-rwxr-xr-xtest/units/testsuite-62.sh1
-rwxr-xr-xtest/units/testsuite-64.sh1
-rwxr-xr-xtest/units/testsuite-65.sh1
-rwxr-xr-xtest/units/testsuite-66.sh1
140 files changed, 142 insertions, 25 deletions
diff --git a/test/TEST-01-BASIC/Makefile b/test/TEST-01-BASIC/Makefile
index 9b90a1c2bc..9f65d4ca4f 100644
--- a/test/TEST-01-BASIC/Makefile
+++ b/test/TEST-01-BASIC/Makefile
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
all setup run clean clean-again:
@TEST_BASE_DIR=../ ./test.sh --$@
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
index d42c0df9a0..a790cd78ac 100755
--- a/test/TEST-01-BASIC/test.sh
+++ b/test/TEST-01-BASIC/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Basic systemd setup"
diff --git a/test/TEST-02-UNITTESTS/test.sh b/test/TEST-02-UNITTESTS/test.sh
index 440d7b8b29..571abe41c3 100755
--- a/test/TEST-02-UNITTESTS/test.sh
+++ b/test/TEST-02-UNITTESTS/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Run unit tests under containers"
diff --git a/test/TEST-03-JOBS/test.sh b/test/TEST-03-JOBS/test.sh
index 4ffa1bd6f4..f827f90865 100755
--- a/test/TEST-03-JOBS/test.sh
+++ b/test/TEST-03-JOBS/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Job-related tests"
diff --git a/test/TEST-04-JOURNAL/test.sh b/test/TEST-04-JOURNAL/test.sh
index 3d7dff976b..0a3bfb545c 100755
--- a/test/TEST-04-JOURNAL/test.sh
+++ b/test/TEST-04-JOURNAL/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Journal-related tests"
diff --git a/test/TEST-05-RLIMITS/test.sh b/test/TEST-05-RLIMITS/test.sh
index 12b4530dd4..10e2a56fad 100755
--- a/test/TEST-05-RLIMITS/test.sh
+++ b/test/TEST-05-RLIMITS/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Resource limits-related tests"
diff --git a/test/TEST-06-SELINUX/test.sh b/test/TEST-06-SELINUX/test.sh
index d65d273055..a867dea4b7 100755
--- a/test/TEST-06-SELINUX/test.sh
+++ b/test/TEST-06-SELINUX/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="SELinux tests"
diff --git a/test/TEST-07-ISSUE-1981/test.sh b/test/TEST-07-ISSUE-1981/test.sh
index d195dcf184..5bc41386b5 100755
--- a/test/TEST-07-ISSUE-1981/test.sh
+++ b/test/TEST-07-ISSUE-1981/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/1981"
diff --git a/test/TEST-08-ISSUE-2730/test.sh b/test/TEST-08-ISSUE-2730/test.sh
index 76927be429..8fc5f1c907 100755
--- a/test/TEST-08-ISSUE-2730/test.sh
+++ b/test/TEST-08-ISSUE-2730/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/2730"
diff --git a/test/TEST-09-ISSUE-2691/test.sh b/test/TEST-09-ISSUE-2691/test.sh
index 3c92efbcc2..1c995f4801 100755
--- a/test/TEST-09-ISSUE-2691/test.sh
+++ b/test/TEST-09-ISSUE-2691/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/2691"
diff --git a/test/TEST-10-ISSUE-2467/test.sh b/test/TEST-10-ISSUE-2467/test.sh
index 2a16ff3baa..b510627a70 100755
--- a/test/TEST-10-ISSUE-2467/test.sh
+++ b/test/TEST-10-ISSUE-2467/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/2467"
diff --git a/test/TEST-11-ISSUE-3166/test.sh b/test/TEST-11-ISSUE-3166/test.sh
index ba751853f9..9adccc10b2 100755
--- a/test/TEST-11-ISSUE-3166/test.sh
+++ b/test/TEST-11-ISSUE-3166/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/3166"
diff --git a/test/TEST-12-ISSUE-3171/test.sh b/test/TEST-12-ISSUE-3171/test.sh
index 6e250b7669..977e04ee3f 100755
--- a/test/TEST-12-ISSUE-3171/test.sh
+++ b/test/TEST-12-ISSUE-3171/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/3171"
diff --git a/test/TEST-13-NSPAWN-SMOKE/test.sh b/test/TEST-13-NSPAWN-SMOKE/test.sh
index a708465bdd..3d1e50447c 100755
--- a/test/TEST-13-NSPAWN-SMOKE/test.sh
+++ b/test/TEST-13-NSPAWN-SMOKE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="systemd-nspawn smoke test"
diff --git a/test/TEST-14-MACHINE-ID/test.sh b/test/TEST-14-MACHINE-ID/test.sh
index 14d30ec1e1..afaa4cfbc6 100755
--- a/test/TEST-14-MACHINE-ID/test.sh
+++ b/test/TEST-14-MACHINE-ID/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="/etc/machine-id testing"
diff --git a/test/TEST-15-DROPIN/test.sh b/test/TEST-15-DROPIN/test.sh
index f4422d4c7f..d416c482d6 100755
--- a/test/TEST-15-DROPIN/test.sh
+++ b/test/TEST-15-DROPIN/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Dropin tests"
diff --git a/test/TEST-16-EXTEND-TIMEOUT/test.sh b/test/TEST-16-EXTEND-TIMEOUT/test.sh
index dd43902967..fd1b072c63 100755
--- a/test/TEST-16-EXTEND-TIMEOUT/test.sh
+++ b/test/TEST-16-EXTEND-TIMEOUT/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="EXTEND_TIMEOUT_USEC=usec start/runtime/stop tests"
diff --git a/test/TEST-17-UDEV/test.sh b/test/TEST-17-UDEV/test.sh
index f2c5f3c983..079ecfd629 100755
--- a/test/TEST-17-UDEV/test.sh
+++ b/test/TEST-17-UDEV/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="UDEV"
diff --git a/test/TEST-18-FAILUREACTION/test.sh b/test/TEST-18-FAILUREACTION/test.sh
index 2e7ed0c2d6..a72365d0ec 100755
--- a/test/TEST-18-FAILUREACTION/test.sh
+++ b/test/TEST-18-FAILUREACTION/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="FailureAction= operation"
diff --git a/test/TEST-19-DELEGATE/test.sh b/test/TEST-19-DELEGATE/test.sh
index 165b31f787..5623708312 100755
--- a/test/TEST-19-DELEGATE/test.sh
+++ b/test/TEST-19-DELEGATE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test cgroup delegation in the unified hierarchy"
diff --git a/test/TEST-20-MAINPIDGAMES/test.sh b/test/TEST-20-MAINPIDGAMES/test.sh
index bb9ddcde22..b663201efb 100755
--- a/test/TEST-20-MAINPIDGAMES/test.sh
+++ b/test/TEST-20-MAINPIDGAMES/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test changing main PID"
diff --git a/test/TEST-22-TMPFILES/test.sh b/test/TEST-22-TMPFILES/test.sh
index c8b71e75a9..46dd990f79 100755
--- a/test/TEST-22-TMPFILES/test.sh
+++ b/test/TEST-22-TMPFILES/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Tmpfiles related tests"
diff --git a/test/TEST-23-TYPE-EXEC/test.sh b/test/TEST-23-TYPE-EXEC/test.sh
index fb77dc7ab3..7268cde837 100755
--- a/test/TEST-23-TYPE-EXEC/test.sh
+++ b/test/TEST-23-TYPE-EXEC/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test Type=exec"
diff --git a/test/TEST-24-CRYPTSETUP/test.sh b/test/TEST-24-CRYPTSETUP/test.sh
index 2c13126a43..2dd0d4ca7f 100755
--- a/test/TEST-24-CRYPTSETUP/test.sh
+++ b/test/TEST-24-CRYPTSETUP/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="cryptsetup systemd setup"
diff --git a/test/TEST-25-IMPORT/test.sh b/test/TEST-25-IMPORT/test.sh
index 6fff9e5108..c382b3a11b 100755
--- a/test/TEST-25-IMPORT/test.sh
+++ b/test/TEST-25-IMPORT/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test importd"
diff --git a/test/TEST-26-SETENV/test.sh b/test/TEST-26-SETENV/test.sh
index fe4c517895..b38e37bfce 100755
--- a/test/TEST-26-SETENV/test.sh
+++ b/test/TEST-26-SETENV/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test setenv"
diff --git a/test/TEST-27-STDOUTFILE/test.sh b/test/TEST-27-STDOUTFILE/test.sh
index 144b88fa30..15229ba018 100755
--- a/test/TEST-27-STDOUTFILE/test.sh
+++ b/test/TEST-27-STDOUTFILE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test StandardOutput=file:"
diff --git a/test/TEST-28-PERCENTJ-WANTEDBY/test.sh b/test/TEST-28-PERCENTJ-WANTEDBY/test.sh
index d535c41684..ae935fa789 100755
--- a/test/TEST-28-PERCENTJ-WANTEDBY/test.sh
+++ b/test/TEST-28-PERCENTJ-WANTEDBY/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Ensure %j Wants directives work"
diff --git a/test/TEST-29-PORTABLE/test.sh b/test/TEST-29-PORTABLE/test.sh
index 579e04dbf5..a345e29314 100755
--- a/test/TEST-29-PORTABLE/test.sh
+++ b/test/TEST-29-PORTABLE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -e
diff --git a/test/TEST-30-ONCLOCKCHANGE/test.sh b/test/TEST-30-ONCLOCKCHANGE/test.sh
index aefe4bb00d..69dbdb2b5f 100755
--- a/test/TEST-30-ONCLOCKCHANGE/test.sh
+++ b/test/TEST-30-ONCLOCKCHANGE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test OnClockChange= + OnTimezoneChange="
diff --git a/test/TEST-31-DEVICE-ENUMERATION/test.sh b/test/TEST-31-DEVICE-ENUMERATION/test.sh
index 809f7fdca7..01dd8744a7 100755
--- a/test/TEST-31-DEVICE-ENUMERATION/test.sh
+++ b/test/TEST-31-DEVICE-ENUMERATION/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="plugged -> dead -> plugged issue #11997"
diff --git a/test/TEST-32-OOMPOLICY/test.sh b/test/TEST-32-OOMPOLICY/test.sh
index 299bfe443a..78c4e6488b 100755
--- a/test/TEST-32-OOMPOLICY/test.sh
+++ b/test/TEST-32-OOMPOLICY/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test OOM killer logic"
diff --git a/test/TEST-33-CLEAN-UNIT/test.sh b/test/TEST-33-CLEAN-UNIT/test.sh
index d49a85828c..dae72d98ef 100755
--- a/test/TEST-33-CLEAN-UNIT/test.sh
+++ b/test/TEST-33-CLEAN-UNIT/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -e
diff --git a/test/TEST-34-DYNAMICUSERMIGRATE/test.sh b/test/TEST-34-DYNAMICUSERMIGRATE/test.sh
index 4d5ca336f1..5acc57363e 100755
--- a/test/TEST-34-DYNAMICUSERMIGRATE/test.sh
+++ b/test/TEST-34-DYNAMICUSERMIGRATE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test migrating state directory from DynamicUser=1 to DynamicUser=0 and back"
diff --git a/test/TEST-36-NUMAPOLICY/test.sh b/test/TEST-36-NUMAPOLICY/test.sh
index fddd5b6727..0eaaee9608 100755
--- a/test/TEST-36-NUMAPOLICY/test.sh
+++ b/test/TEST-36-NUMAPOLICY/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test NUMAPolicy= and NUMAMask= options"
diff --git a/test/TEST-37-RUNTIMEDIRECTORYPRESERVE/test.sh b/test/TEST-37-RUNTIMEDIRECTORYPRESERVE/test.sh
index ebe4c4f1b5..2f65908515 100755
--- a/test/TEST-37-RUNTIMEDIRECTORYPRESERVE/test.sh
+++ b/test/TEST-37-RUNTIMEDIRECTORYPRESERVE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -e
diff --git a/test/TEST-38-FREEZER/test.sh b/test/TEST-38-FREEZER/test.sh
index dab05022be..e78fae2c74 100755
--- a/test/TEST-38-FREEZER/test.sh
+++ b/test/TEST-38-FREEZER/test.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test unit freezing and thawing via DBus and systemctl"
diff --git a/test/TEST-39-EXECRELOAD/test.sh b/test/TEST-39-EXECRELOAD/test.sh
index 653aee13ab..c7565c6488 100755
--- a/test/TEST-39-EXECRELOAD/test.sh
+++ b/test/TEST-39-EXECRELOAD/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Test ExecReload= (PR #13098)"
diff --git a/test/TEST-40-EXEC-COMMAND-EX/test.sh b/test/TEST-40-EXEC-COMMAND-EX/test.sh
index bbbbad7064..6101f2ccf5 100755
--- a/test/TEST-40-EXEC-COMMAND-EX/test.sh
+++ b/test/TEST-40-EXEC-COMMAND-EX/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test ExecXYZEx= service unit dbus hookups"
diff --git a/test/TEST-41-ONESHOT-RESTART/test.sh b/test/TEST-41-ONESHOT-RESTART/test.sh
index aced44314b..2e1879a7cb 100755
--- a/test/TEST-41-ONESHOT-RESTART/test.sh
+++ b/test/TEST-41-ONESHOT-RESTART/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Test oneshot unit restart on failure"
diff --git a/test/TEST-42-EXECSTOPPOST/test.sh b/test/TEST-42-EXECSTOPPOST/test.sh
index 59f8868af2..9d75bac2b6 100755
--- a/test/TEST-42-EXECSTOPPOST/test.sh
+++ b/test/TEST-42-EXECSTOPPOST/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test that ExecStopPost= is always run"
diff --git a/test/TEST-43-PRIVATEUSER-UNPRIV/test.sh b/test/TEST-43-PRIVATEUSER-UNPRIV/test.sh
index 9a7aa401bf..bb8bc18697 100755
--- a/test/TEST-43-PRIVATEUSER-UNPRIV/test.sh
+++ b/test/TEST-43-PRIVATEUSER-UNPRIV/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Test PrivateUsers=yes on user manager"
diff --git a/test/TEST-44-LOG-NAMESPACE/test.sh b/test/TEST-44-LOG-NAMESPACE/test.sh
index 3caa76cecf..320c6ffd03 100755
--- a/test/TEST-44-LOG-NAMESPACE/test.sh
+++ b/test/TEST-44-LOG-NAMESPACE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test log namespaces"
diff --git a/test/TEST-46-HOMED/test.sh b/test/TEST-46-HOMED/test.sh
index dea7e43876..7725995195 100755
--- a/test/TEST-46-HOMED/test.sh
+++ b/test/TEST-46-HOMED/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="testing homed"
diff --git a/test/TEST-47-ISSUE-14566/test.sh b/test/TEST-47-ISSUE-14566/test.sh
index c275770d4b..8bdbe14b97 100755
--- a/test/TEST-47-ISSUE-14566/test.sh
+++ b/test/TEST-47-ISSUE-14566/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Test that KillMode=mixed does not leave left over processes with ExecStopPost="
diff --git a/test/TEST-48-START-STOP-NO-RELOAD/test.sh b/test/TEST-48-START-STOP-NO-RELOAD/test.sh
index d1abc8aeeb..0bece7d5b5 100755
--- a/test/TEST-48-START-STOP-NO-RELOAD/test.sh
+++ b/test/TEST-48-START-STOP-NO-RELOAD/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -e
diff --git a/test/TEST-49-RUNTIME-BIND-PATHS/test.sh b/test/TEST-49-RUNTIME-BIND-PATHS/test.sh
index 297b22d4ee..c9f33457b3 100755
--- a/test/TEST-49-RUNTIME-BIND-PATHS/test.sh
+++ b/test/TEST-49-RUNTIME-BIND-PATHS/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test adding new BindPaths while unit is already running"
diff --git a/test/TEST-50-DISSECT/test.sh b/test/TEST-50-DISSECT/test.sh
index d8ac512a02..9787379992 100755
--- a/test/TEST-50-DISSECT/test.sh
+++ b/test/TEST-50-DISSECT/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -e
diff --git a/test/TEST-51-ISSUE-16115/test.sh b/test/TEST-51-ISSUE-16115/test.sh
index 5a0498e066..7b306fa57b 100755
--- a/test/TEST-51-ISSUE-16115/test.sh
+++ b/test/TEST-51-ISSUE-16115/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Test ExecCondition= does not restart on abnormal or failure"
diff --git a/test/TEST-52-HONORFIRSTSHUTDOWN/test.sh b/test/TEST-52-HONORFIRSTSHUTDOWN/test.sh
index 6b77693346..a9d96c48e9 100755
--- a/test/TEST-52-HONORFIRSTSHUTDOWN/test.sh
+++ b/test/TEST-52-HONORFIRSTSHUTDOWN/test.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_REQUIRE_INSTALL_TESTS=0
diff --git a/test/TEST-53-ISSUE-16347/test.sh b/test/TEST-53-ISSUE-16347/test.sh
index 699b7b65d8..7f44c66bff 100755
--- a/test/TEST-53-ISSUE-16347/test.sh
+++ b/test/TEST-53-ISSUE-16347/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test timer units when initial clock is ahead"
diff --git a/test/TEST-54-CREDS/test.sh b/test/TEST-54-CREDS/test.sh
index 28333d38d8..3689be4203 100755
--- a/test/TEST-54-CREDS/test.sh
+++ b/test/TEST-54-CREDS/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test credentials"
diff --git a/test/TEST-55-OOMD/test.sh b/test/TEST-55-OOMD/test.sh
index 8e75651a22..4dc414294c 100755
--- a/test/TEST-55-OOMD/test.sh
+++ b/test/TEST-55-OOMD/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="systemd-oomd Memory Pressure Test"
diff --git a/test/TEST-57-ONSUCCESS-UPHOLD/test.sh b/test/TEST-57-ONSUCCESS-UPHOLD/test.sh
index 34513f2ba2..8181ac508f 100755
--- a/test/TEST-57-ONSUCCESS-UPHOLD/test.sh
+++ b/test/TEST-57-ONSUCCESS-UPHOLD/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test OnSuccess= + Uphold= + PropagatesStopTo= + BindsTo="
diff --git a/test/TEST-58-REPART/test.sh b/test/TEST-58-REPART/test.sh
index df5ad3c0c6..362236c0a8 100755
--- a/test/TEST-58-REPART/test.sh
+++ b/test/TEST-58-REPART/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test systemd-repart"
diff --git a/test/TEST-59-RELOADING-RESTART/test.sh b/test/TEST-59-RELOADING-RESTART/test.sh
index 343848e33a..8821625bff 100755
--- a/test/TEST-59-RELOADING-RESTART/test.sh
+++ b/test/TEST-59-RELOADING-RESTART/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Test auto restart of exited services which are stuck in reloading state"
diff --git a/test/TEST-60-MOUNT-RATELIMIT/test.sh b/test/TEST-60-MOUNT-RATELIMIT/test.sh
index e14bc83e09..6cf4494395 100755
--- a/test/TEST-60-MOUNT-RATELIMIT/test.sh
+++ b/test/TEST-60-MOUNT-RATELIMIT/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Test that mount/unmount storms can enter/exit rate limit state and will not leak units"
diff --git a/test/TEST-61-UNITTESTS-QEMU/test.sh b/test/TEST-61-UNITTESTS-QEMU/test.sh
index 0f793bbee3..45c5f71bfe 100755
--- a/test/TEST-61-UNITTESTS-QEMU/test.sh
+++ b/test/TEST-61-UNITTESTS-QEMU/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="Run unit tests under qemu"
diff --git a/test/TEST-62-RESTRICT-IFACES/test.sh b/test/TEST-62-RESTRICT-IFACES/test.sh
index 85d5a53473..db8290b73f 100755
--- a/test/TEST-62-RESTRICT-IFACES/test.sh
+++ b/test/TEST-62-RESTRICT-IFACES/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test RestrictNetworkInterfaces="
diff --git a/test/TEST-63-ISSUE-17433/test.sh b/test/TEST-63-ISSUE-17433/test.sh
index c595a9f2de..4d132ba939 100755
--- a/test/TEST-63-ISSUE-17433/test.sh
+++ b/test/TEST-63-ISSUE-17433/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/17433"
diff --git a/test/TEST-64-UDEV-STORAGE/test.sh b/test/TEST-64-UDEV-STORAGE/test.sh
index bd3f8250a3..227258f3e4 100755
--- a/test/TEST-64-UDEV-STORAGE/test.sh
+++ b/test/TEST-64-UDEV-STORAGE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# vi: ts=4 sw=4 tw=0 et:
#
# TODO:
diff --git a/test/TEST-65-ANALYZE/test.sh b/test/TEST-65-ANALYZE/test.sh
index a64a7da258..3a9388d49c 100755
--- a/test/TEST-65-ANALYZE/test.sh
+++ b/test/TEST-65-ANALYZE/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test analyze"
diff --git a/test/TEST-66-DEVICE-ISOLATION/test.sh b/test/TEST-66-DEVICE-ISOLATION/test.sh
index 534e43e493..28eed2c64e 100755
--- a/test/TEST-66-DEVICE-ISOLATION/test.sh
+++ b/test/TEST-66-DEVICE-ISOLATION/test.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
TEST_DESCRIPTION="test device isolation"
diff --git a/test/test-path-util/script.sh b/test/test-path-util/script.sh
index 8ffd8d7889..d13b36376e 100755
--- a/test/test-path-util/script.sh
+++ b/test/test-path-util/script.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+# SPDX-License-Identifier: LGPL-2.1-or-later
echo "$0 $*"
test "$(basename "$0")" = "script.sh" || exit 1
diff --git a/test/units/testsuite-02.sh b/test/units/testsuite-02.sh
index b16e8547ab..af6e007825 100755
--- a/test/units/testsuite-02.sh
+++ b/test/units/testsuite-02.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-03.sh b/test/units/testsuite-03.sh
index 8a8ba870e8..070e978cda 100755
--- a/test/units/testsuite-03.sh
+++ b/test/units/testsuite-03.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-04.sh b/test/units/testsuite-04.sh
index 562f364700..7521a6d2e5 100755
--- a/test/units/testsuite-04.sh
+++ b/test/units/testsuite-04.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-05.sh b/test/units/testsuite-05.sh
index c98d849b08..870845d14b 100755
--- a/test/units/testsuite-05.sh
+++ b/test/units/testsuite-05.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-06.sh b/test/units/testsuite-06.sh
index f89698ded4..c57d8b9488 100755
--- a/test/units/testsuite-06.sh
+++ b/test/units/testsuite-06.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-07.sh b/test/units/testsuite-07.sh
index bd1da341ac..5e9fe64ea9 100755
--- a/test/units/testsuite-07.sh
+++ b/test/units/testsuite-07.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-11.sh b/test/units/testsuite-11.sh
index d05f609877..7e1391d8ea 100755
--- a/test/units/testsuite-11.sh
+++ b/test/units/testsuite-11.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-12.sh b/test/units/testsuite-12.sh
index c4ee600abe..e64f321273 100755
--- a/test/units/testsuite-12.sh
+++ b/test/units/testsuite-12.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-13.sh b/test/units/testsuite-13.sh
index 3f5a542738..554d098ef5 100755
--- a/test/units/testsuite-13.sh
+++ b/test/units/testsuite-13.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# shellcheck disable=SC2016
set -eux
set -o pipefail
diff --git a/test/units/testsuite-14.sh b/test/units/testsuite-14.sh
index 7a64d93736..54275910cf 100755
--- a/test/units/testsuite-14.sh
+++ b/test/units/testsuite-14.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-15.sh b/test/units/testsuite-15.sh
index c3784e299d..e4bb222c67 100755
--- a/test/units/testsuite-15.sh
+++ b/test/units/testsuite-15.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-16.sh b/test/units/testsuite-16.sh
index 9f3a843da6..1b8cd018bb 100755
--- a/test/units/testsuite-16.sh
+++ b/test/units/testsuite-16.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-17.01.sh b/test/units/testsuite-17.01.sh
index 4f9f72daf1..44f36f5955 100755
--- a/test/units/testsuite-17.01.sh
+++ b/test/units/testsuite-17.01.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
set -o pipefail
diff --git a/test/units/testsuite-17.02.sh b/test/units/testsuite-17.02.sh
index b73bd97702..797676fc14 100755
--- a/test/units/testsuite-17.02.sh
+++ b/test/units/testsuite-17.02.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
set -o pipefail
diff --git a/test/units/testsuite-17.03.sh b/test/units/testsuite-17.03.sh
index 16ae62b46b..fecfd17952 100755
--- a/test/units/testsuite-17.03.sh
+++ b/test/units/testsuite-17.03.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
test_rule="/run/udev/rules.d/49-test.rules"
diff --git a/test/units/testsuite-17.04.sh b/test/units/testsuite-17.04.sh
index bb4777f25e..d1c3c85566 100755
--- a/test/units/testsuite-17.04.sh
+++ b/test/units/testsuite-17.04.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
set -o pipefail
diff --git a/test/units/testsuite-17.05.sh b/test/units/testsuite-17.05.sh
index a6e5b3325e..60be31a126 100755
--- a/test/units/testsuite-17.05.sh
+++ b/test/units/testsuite-17.05.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
set -o pipefail
diff --git a/test/units/testsuite-17.06.sh b/test/units/testsuite-17.06.sh
index cd98ed8217..f2a0442dc3 100755
--- a/test/units/testsuite-17.06.sh
+++ b/test/units/testsuite-17.06.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
set -o pipefail
diff --git a/test/units/testsuite-17.sh b/test/units/testsuite-17.sh
index 92ff7b56a6..b389875ef1 100755
--- a/test/units/testsuite-17.sh
+++ b/test/units/testsuite-17.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-18.sh b/test/units/testsuite-18.sh
index fe4f9ce5e0..e9d7c5bfc8 100755
--- a/test/units/testsuite-18.sh
+++ b/test/units/testsuite-18.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-19.sh b/test/units/testsuite-19.sh
index 8ea89e6cfe..ee4eb8431e 100755
--- a/test/units/testsuite-19.sh
+++ b/test/units/testsuite-19.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-20.sh b/test/units/testsuite-20.sh
index 7876a9d10c..17a27d7d7c 100755
--- a/test/units/testsuite-20.sh
+++ b/test/units/testsuite-20.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.01.sh b/test/units/testsuite-22.01.sh
index 7975980799..2276b75d35 100755
--- a/test/units/testsuite-22.01.sh
+++ b/test/units/testsuite-22.01.sh
@@ -1,9 +1,8 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
#
# With "e" don't attempt to set permissions when file doesn't exist, see
# https://github.com/systemd/systemd/pull/6682.
-#
-
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.02.sh b/test/units/testsuite-22.02.sh
index 94fa11ba88..0719d68292 100755
--- a/test/units/testsuite-22.02.sh
+++ b/test/units/testsuite-22.02.sh
@@ -1,8 +1,7 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Basic tests for types creating directories
-#
-
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.03.sh b/test/units/testsuite-22.03.sh
index 1ed026eb70..404e33e2fa 100755
--- a/test/units/testsuite-22.03.sh
+++ b/test/units/testsuite-22.03.sh
@@ -1,8 +1,7 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Basic tests for types creating/writing files
-#
-
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.04.sh b/test/units/testsuite-22.04.sh
index d814ed8786..7bf2b28edc 100755
--- a/test/units/testsuite-22.04.sh
+++ b/test/units/testsuite-22.04.sh
@@ -1,8 +1,7 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Basic tests for types creating fifos
-#
-
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.05.sh b/test/units/testsuite-22.05.sh
index eaabbc4517..cde9b5d61c 100755
--- a/test/units/testsuite-22.05.sh
+++ b/test/units/testsuite-22.05.sh
@@ -1,5 +1,5 @@
#! /bin/bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.06.sh b/test/units/testsuite-22.06.sh
index ce5b1bf698..f64a95ce1a 100755
--- a/test/units/testsuite-22.06.sh
+++ b/test/units/testsuite-22.06.sh
@@ -1,8 +1,7 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Inspired by https://github.com/systemd/systemd/issues/9508
-#
-
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.07.sh b/test/units/testsuite-22.07.sh
index 8d61032d27..de20d5ee90 100755
--- a/test/units/testsuite-22.07.sh
+++ b/test/units/testsuite-22.07.sh
@@ -1,8 +1,7 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Verifies the issues described by https://github.com/systemd/systemd/issues/10191
-#
-
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.08.sh b/test/units/testsuite-22.08.sh
index e4272f8ea3..65f1832adc 100755
--- a/test/units/testsuite-22.08.sh
+++ b/test/units/testsuite-22.08.sh
@@ -1,12 +1,11 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Verify tmpfiles can run in a root directory under a path prefix that contains
# directories owned by unprivileged users, for example when a root file system
# is mounted in a regular user's home directory.
#
# https://github.com/systemd/systemd/pull/11820
-#
-
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.09.sh b/test/units/testsuite-22.09.sh
index c852f778ef..0857773526 100755
--- a/test/units/testsuite-22.09.sh
+++ b/test/units/testsuite-22.09.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.10.sh b/test/units/testsuite-22.10.sh
index d650b2145c..99052c808f 100755
--- a/test/units/testsuite-22.10.sh
+++ b/test/units/testsuite-22.10.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-22.11.sh b/test/units/testsuite-22.11.sh
index 21ef210cd1..508f90c9f5 100755
--- a/test/units/testsuite-22.11.sh
+++ b/test/units/testsuite-22.11.sh
@@ -1,5 +1,5 @@
#! /bin/bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
set -x
diff --git a/test/units/testsuite-22.12.sh b/test/units/testsuite-22.12.sh
index 7f27b40acd..660e8146bc 100755
--- a/test/units/testsuite-22.12.sh
+++ b/test/units/testsuite-22.12.sh
@@ -1,7 +1,7 @@
#! /bin/bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
+#
# Test the "Age" parameter (with age-by) for systemd-tmpfiles.
-
set -e
set -x
diff --git a/test/units/testsuite-22.sh b/test/units/testsuite-22.sh
index 65d0802969..43823f1d46 100755
--- a/test/units/testsuite-22.sh
+++ b/test/units/testsuite-22.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-23.sh b/test/units/testsuite-23.sh
index 5488447a87..46e45c8780 100755
--- a/test/units/testsuite-23.sh
+++ b/test/units/testsuite-23.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-25.sh b/test/units/testsuite-25.sh
index fbe2d0b1d4..4119d777b3 100755
--- a/test/units/testsuite-25.sh
+++ b/test/units/testsuite-25.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-26.sh b/test/units/testsuite-26.sh
index 7982099307..7df0d1dc8f 100755
--- a/test/units/testsuite-26.sh
+++ b/test/units/testsuite-26.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-27.sh b/test/units/testsuite-27.sh
index 2248380351..3b2f925153 100755
--- a/test/units/testsuite-27.sh
+++ b/test/units/testsuite-27.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-29.sh b/test/units/testsuite-29.sh
index 7775695e6d..11f1832aa4 100755
--- a/test/units/testsuite-29.sh
+++ b/test/units/testsuite-29.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -eux
diff --git a/test/units/testsuite-30.sh b/test/units/testsuite-30.sh
index ac8a3e06cf..51b9bdd093 100755
--- a/test/units/testsuite-30.sh
+++ b/test/units/testsuite-30.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-31.sh b/test/units/testsuite-31.sh
index a9a50e1470..024ad3652f 100755
--- a/test/units/testsuite-31.sh
+++ b/test/units/testsuite-31.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-32.sh b/test/units/testsuite-32.sh
index 2393601a00..20ab67f6f1 100755
--- a/test/units/testsuite-32.sh
+++ b/test/units/testsuite-32.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-33.sh b/test/units/testsuite-33.sh
index 6e750f63a3..b951eef88b 100755
--- a/test/units/testsuite-33.sh
+++ b/test/units/testsuite-33.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -eux
diff --git a/test/units/testsuite-34.sh b/test/units/testsuite-34.sh
index 394b220d60..97244ac457 100755
--- a/test/units/testsuite-34.sh
+++ b/test/units/testsuite-34.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-36.sh b/test/units/testsuite-36.sh
index b684011785..b6c00c4845 100755
--- a/test/units/testsuite-36.sh
+++ b/test/units/testsuite-36.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-37.sh b/test/units/testsuite-37.sh
index c3eb5344d1..1aec383c0c 100755
--- a/test/units/testsuite-37.sh
+++ b/test/units/testsuite-37.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -eux
diff --git a/test/units/testsuite-38.sh b/test/units/testsuite-38.sh
index e58bae81fe..f2f61b961f 100755
--- a/test/units/testsuite-38.sh
+++ b/test/units/testsuite-38.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-39.sh b/test/units/testsuite-39.sh
index 3b0d893a4c..03abf391f1 100755
--- a/test/units/testsuite-39.sh
+++ b/test/units/testsuite-39.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-40.sh b/test/units/testsuite-40.sh
index fdb052c39c..dd54fa174c 100755
--- a/test/units/testsuite-40.sh
+++ b/test/units/testsuite-40.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-41.sh b/test/units/testsuite-41.sh
index e7993e8df7..3b41db03f5 100755
--- a/test/units/testsuite-41.sh
+++ b/test/units/testsuite-41.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-42.sh b/test/units/testsuite-42.sh
index 4e6be7e06e..9476df86dd 100755
--- a/test/units/testsuite-42.sh
+++ b/test/units/testsuite-42.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
systemd-analyze log-level debug
diff --git a/test/units/testsuite-43.sh b/test/units/testsuite-43.sh
index c6399f9920..9c0f93b518 100755
--- a/test/units/testsuite-43.sh
+++ b/test/units/testsuite-43.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-44.sh b/test/units/testsuite-44.sh
index 0100b31b57..49c240ff8e 100755
--- a/test/units/testsuite-44.sh
+++ b/test/units/testsuite-44.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
systemd-analyze log-level debug
diff --git a/test/units/testsuite-46.sh b/test/units/testsuite-46.sh
index 808270f33d..72d1fd6f85 100755
--- a/test/units/testsuite-46.sh
+++ b/test/units/testsuite-46.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-47-repro.sh b/test/units/testsuite-47-repro.sh
index b008f52e95..74fa7605e7 100755
--- a/test/units/testsuite-47-repro.sh
+++ b/test/units/testsuite-47-repro.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
sleep infinity &
echo $! >/leakedtestpid
diff --git a/test/units/testsuite-47.sh b/test/units/testsuite-47.sh
index c1714d14d0..ff10602df7 100755
--- a/test/units/testsuite-47.sh
+++ b/test/units/testsuite-47.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-48.sh b/test/units/testsuite-48.sh
index 147f6fa54f..2b5b86f6e8 100755
--- a/test/units/testsuite-48.sh
+++ b/test/units/testsuite-48.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -eux
diff --git a/test/units/testsuite-49.sh b/test/units/testsuite-49.sh
index 8e360b4951..1fa972552b 100755
--- a/test/units/testsuite-49.sh
+++ b/test/units/testsuite-49.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
echo "MARKER_FIXED" >/run/testservice-49-fixed
diff --git a/test/units/testsuite-50.sh b/test/units/testsuite-50.sh
index a8024b32e3..e7e4e4b147 100755
--- a/test/units/testsuite-50.sh
+++ b/test/units/testsuite-50.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
set -eux
diff --git a/test/units/testsuite-51.sh b/test/units/testsuite-51.sh
index 06bc1602f8..fbe9693f3a 100755
--- a/test/units/testsuite-51.sh
+++ b/test/units/testsuite-51.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-52.sh b/test/units/testsuite-52.sh
index ea133dbaad..68c73f5a99 100755
--- a/test/units/testsuite-52.sh
+++ b/test/units/testsuite-52.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
set -o pipefail
diff --git a/test/units/testsuite-53.sh b/test/units/testsuite-53.sh
index 3eef94bc14..84cd66129d 100755
--- a/test/units/testsuite-53.sh
+++ b/test/units/testsuite-53.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-54.sh b/test/units/testsuite-54.sh
index eb72597961..6fc32b0a5b 100755
--- a/test/units/testsuite-54.sh
+++ b/test/units/testsuite-54.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# shellcheck disable=SC2016
set -eux
diff --git a/test/units/testsuite-55-slowgrowth.sh b/test/units/testsuite-55-slowgrowth.sh
index d1595ad150..df1ea483fb 100755
--- a/test/units/testsuite-55-slowgrowth.sh
+++ b/test/units/testsuite-55-slowgrowth.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# Don't use set -x here, since it generates a lot of output and slows
# the script down, causing unexpected test fails.
set -eu
diff --git a/test/units/testsuite-55.sh b/test/units/testsuite-55.sh
index 945e192420..b265c8cce7 100755
--- a/test/units/testsuite-55.sh
+++ b/test/units/testsuite-55.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-57-short-lived.sh b/test/units/testsuite-57-short-lived.sh
index 8c48d3a2d5..164fb0f1de 100755
--- a/test/units/testsuite-57-short-lived.sh
+++ b/test/units/testsuite-57-short-lived.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
if [ -f /tmp/testsuite-57.counter ] ; then
diff --git a/test/units/testsuite-57.sh b/test/units/testsuite-57.sh
index 5db82b8437..66d946bebc 100755
--- a/test/units/testsuite-57.sh
+++ b/test/units/testsuite-57.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-58.sh b/test/units/testsuite-58.sh
index ae177ac428..16cd8385fb 100755
--- a/test/units/testsuite-58.sh
+++ b/test/units/testsuite-58.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-59.sh b/test/units/testsuite-59.sh
index 459d6e6403..143e44ec63 100755
--- a/test/units/testsuite-59.sh
+++ b/test/units/testsuite-59.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-60.sh b/test/units/testsuite-60.sh
index 06526776fd..eb174f00ed 100755
--- a/test/units/testsuite-60.sh
+++ b/test/units/testsuite-60.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-61.sh b/test/units/testsuite-61.sh
index ef9b6b57c5..748e24a7ca 100755
--- a/test/units/testsuite-61.sh
+++ b/test/units/testsuite-61.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
diff --git a/test/units/testsuite-62.sh b/test/units/testsuite-62.sh
index 140ccfe36f..ee67c94ab1 100755
--- a/test/units/testsuite-62.sh
+++ b/test/units/testsuite-62.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
set -o pipefail
diff --git a/test/units/testsuite-64.sh b/test/units/testsuite-64.sh
index 6f8382707f..10cd59f472 100755
--- a/test/units/testsuite-64.sh
+++ b/test/units/testsuite-64.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# vi: ts=4 sw=4 tw=0 et:
set -eux
diff --git a/test/units/testsuite-65.sh b/test/units/testsuite-65.sh
index 95b18e5e23..3c3d795d63 100755
--- a/test/units/testsuite-65.sh
+++ b/test/units/testsuite-65.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
# shellcheck disable=SC2016
set -eux
diff --git a/test/units/testsuite-66.sh b/test/units/testsuite-66.sh
index 6fffa4674f..fba42d15df 100755
--- a/test/units/testsuite-66.sh
+++ b/test/units/testsuite-66.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail