tests: Add 4.14 tests

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-11-14 14:48:08 +00:00
parent eb4bb1fa39
commit 8c3140885c
139 changed files with 2321 additions and 0 deletions

View File

@ -0,0 +1,24 @@
#!/bin/sh
# SUMMARY: Sanity check on the kernel config file
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=kconfig
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
# Test code goes here
moby build -format kernel+initrd -name "${NAME}" test.yml
RESULT="$(linuxkit run ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,15 @@
kernel:
image: linuxkit/kernel:4.14
cmdline: "console=ttyS0"
init:
- linuxkit/init:42a92119e1ca10380e0d33e26c0cbcf85b9b3558
- linuxkit/runc:817fdc592eac6cb7804fa1721a43a7f6e23fb50f
onboot:
- name: check-kernel-config
image: linuxkit/test-kernel-config:ff8fac1c318403aff3e2993dd9b130304e09f92e
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
org:
- linuxkit

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single short TCP/IPv4 connection over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "1", "-r"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single short TCP/IPv4 connection over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "1"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent short TCP/IPv4 connections over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent short TCP/IPv4 connections over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent short TCP/IPv4 connections over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent short TCP/IPv4 connections over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single long running TCP/IPv4 connection over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "1", "-r"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single long running TCP/IPv4 connection over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "1"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent long running TCP/IPv4 connections over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent long running TCP/IPv4 connections over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running TCP/IPv4 connections over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running TCP/IPv4 connections over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single short TCP/IPv6 connection over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "1", "-r"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single short TCP/IPv6 connection over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "1"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent short TCP/IPv6 connections over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent short TCP/IPv6 connections over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent short TCP/IPv6 connections over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent short TCP/IPv6 connections over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single long running TCP/IPv6 connection over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "1", "-r"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single long running TCP/IPv6 connection over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "1"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent long running TCP/IPv6 connections over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent long running TCP/IPv6 connections over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running TCP/IPv6 connections over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running TCP/IPv6 connections over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single short UDP/IPv4 "connection" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "1", "-r"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single short UDP/IPv4 "connection" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "1"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent short UDP/IPv4 "connections" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent short UDP/IPv4 "connections" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent short UDP/IPv4 "connections" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent short UDP/IPv4 "connections" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single long running UDP/IPv4 "connection" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "1", "-r"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single long running UDP/IPv4 "connection" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "1"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent long running UDP/IPv4 "connections" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent long running UDP/IPv4 "connections" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running UDP/IPv4 "connections" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running UDP/IPv4 "connections" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single short UDP/IPv6 "connection" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "1", "-r"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single short UDP/IPv6 "connection" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "1"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent short UDP/IPv6 "connections" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent short UDP/IPv6 "connections" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent short UDP/IPv6 "connections" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent short UDP/IPv6 "connections" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single long running UDP/IPv6 "connection" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "1", "-r"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single long running UDP/IPv6 "connection" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "1"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent long running UDP/IPv6 "connections" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with 10 concurrent long running UDP/IPv6 "connections" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "10"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running UDP/IPv6 "connections" over a veth pair in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running UDP/IPv6 "connections" over a veth pair
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

View File

@ -0,0 +1,10 @@
onboot:
- name: test-ns
image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48
command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "5"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834
command: ["/bin/sh", "/poweroff.sh", "3"]

View File

@ -0,0 +1,31 @@
#!/bin/sh
# SUMMARY: Kernel tests
# LABELS: kernel-extra
group_init() {
# Group initialisation code goes here
return 0
}
group_deinit() {
# Group de-initialisation code goes here
return 0
}
CMD=$1
case $CMD in
init)
group_init
res=$?
;;
deinit)
group_deinit
res=$?
;;
*)
res=1
;;
esac
exit $res

View File

@ -0,0 +1,23 @@
#!/bin/sh
# SUMMARY: Namespace stress with a single short connection over a unix domain socket in reverse order
# LABELS:
# REPEAT:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=test-ns
clean_up() {
rm -rf ${NAME}-*
}
trap clean_up EXIT
moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml
RESULT="$(linuxkit run -cpus 2 ${NAME})"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0

Some files were not shown because too many files have changed in this diff Show More