diff --git a/testsuite/lib/generic.sh b/testsuite/lib/generic.sh
index f92260fc40cf..1b6251efc2d6 100644
--- a/testsuite/lib/generic.sh
+++ b/testsuite/lib/generic.sh
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 
 export DEST="127.0.0.1"
 
diff --git a/testsuite/tests/ip/link/add_type_xfrm.t b/testsuite/tests/ip/link/add_type_xfrm.t
index 78ce28e032c4..3c4862377f90 100755
--- a/testsuite/tests/ip/link/add_type_xfrm.t
+++ b/testsuite/tests/ip/link/add_type_xfrm.t
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/ip/link/new_link.t b/testsuite/tests/ip/link/new_link.t
index c17650a21eba..82e108562406 100755
--- a/testsuite/tests/ip/link/new_link.t
+++ b/testsuite/tests/ip/link/new_link.t
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/ip/link/show_dev_wo_vf_rate.t b/testsuite/tests/ip/link/show_dev_wo_vf_rate.t
index 5b3c004ef697..6ddfd4c8f1bb 100755
--- a/testsuite/tests/ip/link/show_dev_wo_vf_rate.t
+++ b/testsuite/tests/ip/link/show_dev_wo_vf_rate.t
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/ip/netns/set_nsid.t b/testsuite/tests/ip/netns/set_nsid.t
index 8f8c77924dc9..931ecaadafc4 100755
--- a/testsuite/tests/ip/netns/set_nsid.t
+++ b/testsuite/tests/ip/netns/set_nsid.t
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/ip/netns/set_nsid_batch.t b/testsuite/tests/ip/netns/set_nsid_batch.t
index 196fd4b33e0e..935dc7e9998c 100755
--- a/testsuite/tests/ip/netns/set_nsid_batch.t
+++ b/testsuite/tests/ip/netns/set_nsid_batch.t
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/ip/route/add_default_route.t b/testsuite/tests/ip/route/add_default_route.t
index ded4edc3fb39..0a98084d8411 100755
--- a/testsuite/tests/ip/route/add_default_route.t
+++ b/testsuite/tests/ip/route/add_default_route.t
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/ip/tunnel/add_tunnel.t b/testsuite/tests/ip/tunnel/add_tunnel.t
index 65db431cdefe..5866a6aec01b 100755
--- a/testsuite/tests/ip/tunnel/add_tunnel.t
+++ b/testsuite/tests/ip/tunnel/add_tunnel.t
@@ -1,4 +1,6 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/ss/ssfilter.t b/testsuite/tests/ss/ssfilter.t
index 3091054f2892..781cafd232fa 100755
--- a/testsuite/tests/ss/ssfilter.t
+++ b/testsuite/tests/ss/ssfilter.t
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/tc/batch.t b/testsuite/tests/tc/batch.t
index 50e7ba375e3f..db70b46fe2d2 100755
--- a/testsuite/tests/tc/batch.t
+++ b/testsuite/tests/tc/batch.t
@@ -1,4 +1,6 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+
 . lib/generic.sh
 
 DEV="$(rand_dev)"
diff --git a/testsuite/tests/tc/cbq.t b/testsuite/tests/tc/cbq.t
index bff814b73c37..cc6c3b348f82 100755
--- a/testsuite/tests/tc/cbq.t
+++ b/testsuite/tests/tc/cbq.t
@@ -1,4 +1,6 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+
 $TC qdisc del dev $DEV root >/dev/null 2>&1
 $TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64
 $TC class add dev $DEV parent 10:0  classid 10:12   cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt  500 bounded
diff --git a/testsuite/tests/tc/cls-testbed.t b/testsuite/tests/tc/cls-testbed.t
index d5c21e5c420c..454360b8c781 100755
--- a/testsuite/tests/tc/cls-testbed.t
+++ b/testsuite/tests/tc/cls-testbed.t
@@ -1,5 +1,5 @@
 #!/bin/bash
-# vim: ft=sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/tc/dsmark.t b/testsuite/tests/tc/dsmark.t
index 3f1d5ef25850..2395c99de380 100755
--- a/testsuite/tests/tc/dsmark.t
+++ b/testsuite/tests/tc/dsmark.t
@@ -1,5 +1,5 @@
 #!/bin/sh
-# vim: ft=sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/tc/pedit.t b/testsuite/tests/tc/pedit.t
index 8d531a054367..91c7731a2d1f 100755
--- a/testsuite/tests/tc/pedit.t
+++ b/testsuite/tests/tc/pedit.t
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
 
 . lib/generic.sh
 
diff --git a/testsuite/tests/tc/policer.t b/testsuite/tests/tc/policer.t
index eaf16acfc2d2..0181b841ae58 100755
--- a/testsuite/tests/tc/policer.t
+++ b/testsuite/tests/tc/policer.t
@@ -1,4 +1,6 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+
 $TC qdisc del dev $DEV root >/dev/null 2>&1
 $TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64
 $TC class add dev $DEV parent 10:0  classid 10:12   cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt  500 bounded
