mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 10:31:35 +00:00
tests: Add stress tests for network namespaces
These test specific combinations of TCP/UDP/IPv4/IPv6/veth/loopback for all the kernels. Tests take quite a while to run so there are two new labels: 'kernel' and 'kernel-extra'. 'kernel' runs the more important tests for the two kernels we care most about. 'kernel-extra' are additional tests for completeness. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
9fad2e8b31
commit
be5fbb0481
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv4 and veth interfaces
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv4 and veth interfaces
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv6 and veth interfaces
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv6 and veth interfaces
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-tcp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv4 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-tcp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv6 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv4 and veth interfaces
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv4 and veth interfaces
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv6 and veth interfaces
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv6 and veth interfaces
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-udp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv4 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.4.76"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-udp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv6 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv4 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv4 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv6 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv6 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-tcp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv4 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-tcp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv6 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv4 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv4 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv6 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv6 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-udp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv4 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.9.36"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-udp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv6 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv4 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv4 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv6 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-tcp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv6 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-tcp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv4 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-tcp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with TCP/IPv6 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv4 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv4 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv6 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-r", "-i", "20", "-c", "5", "-t", "veth", "-p", "-udp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv6 and veth interfaces
|
||||
# LABELS: kernel
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-udp", "-ip", "4"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv4 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
@ -0,0 +1,17 @@
|
||||
kernel:
|
||||
image: "linuxkit/kernel:4.11.9"
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
||||
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
||||
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
||||
onboot:
|
||||
- name: test-netns
|
||||
image: "linuxkit/test-netns:3e02fb2730ad29a732eb2d4c711cb890169ed776"
|
||||
command: ["/bin/sh", "/runp.sh", "20", "/netns.sh", "-i", "20", "-c", "5", "-t", "loopback", "-p", "-udp", "-ip", "6"]
|
||||
- name: poweroff
|
||||
image: "linuxkit/poweroff:bce51402e293da0b653923a43c3c7be6e0effa05"
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# SUMMARY: Network namespace stress test with UDP/IPv6 over the loopback interface
|
||||
# LABELS: kernel-extra
|
||||
# REPEAT:
|
||||
|
||||
set -e
|
||||
|
||||
# Source libraries. Uncomment if needed/defined
|
||||
#. "${RT_LIB}"
|
||||
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
||||
|
||||
clean_up() {
|
||||
find . -depth -iname "test-netns*" -not -iname "*.yml" -exec rm -rf {} \;
|
||||
}
|
||||
trap clean_up EXIT
|
||||
|
||||
# Test code goes here
|
||||
moby build -output kernel+initrd test-netns.yml
|
||||
RESULT="$(linuxkit run -cpus 2 test-netns)"
|
||||
echo "${RESULT}" | grep -q "suite PASSED"
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user