2 # SPDX-License-Identifier: LGPL-2.1-or-later
7 systemd-analyze log-level debug
11 ip netns del
"ns${i}" || true
12 ip link del
"veth${i}" || true
14 ip link add
"veth${i}" type veth peer name
"veth${i}_"
15 ip link
set "veth${i}_" netns
"ns${i}"
16 ip
-n "ns${i}" link
set dev
"veth${i}_" up
17 ip
-n "ns${i}" link
set dev lo up
18 ip
-n "ns${i}" addr add
"192.168.113."$
((4*i
+1))/30 dev
"veth${i}_"
19 ip link
set dev
"veth${i}" up
20 ip addr add
"192.168.113."$
((4*i
+2))/30 dev
"veth${i}"
24 # shellcheck disable=SC2317
30 ip link del
"veth${i}"
33 systemd-analyze log-level info
36 KERNEL_VERSION
="$(uname -r)"
37 KERNEL_MAJOR
="${KERNEL_VERSION%%.*}"
38 KERNEL_MINOR
="${KERNEL_VERSION#"$KERNEL_MAJOR".}"
39 KERNEL_MINOR
="${KERNEL_MINOR%%.*}"
44 if [[ "$KERNEL_MAJOR" -lt $MAJOR_REQUIRED ||
("$KERNEL_MAJOR" -eq $MAJOR_REQUIRED && "$KERNEL_MINOR" -lt $MINOR_REQUIRED) ]]; then
45 echo "kernel is not 5.7+" >>/skipped
49 if systemctl
--version |
grep -q -F -- "-BPF_FRAMEWORK"; then
50 echo "bpf-framework is disabled" >>/skipped
57 systemctl start
--wait testsuite-62-1.service
58 systemctl start
--wait testsuite-62-2.service
59 systemctl start
--wait testsuite-62-3.service
60 systemctl start
--wait testsuite-62-4.service
61 systemctl start
--wait testsuite-62-5.service