mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-14 06:09:48 +00:00
tests: Add tests for 4.13
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
24
test/cases/020_kernel/005_config_4.13.x/test.sh
Normal file
24
test/cases/020_kernel/005_config_4.13.x/test.sh
Normal 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
|
15
test/cases/020_kernel/005_config_4.13.x/test.yml
Normal file
15
test/cases/020_kernel/005_config_4.13.x/test.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
kernel:
|
||||
image: linuxkit/kernel:4.13.4
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
onboot:
|
||||
- name: check-kernel-config
|
||||
image: linuxkit/test-kernel-config:d58766bb6c0def3df9e6ffc645ee11677f127faa
|
||||
- name: poweroff
|
||||
image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
@@ -0,0 +1,10 @@
|
||||
onboot:
|
||||
- name: test-ns
|
||||
image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf
|
||||
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:1e9876c682c74d0602b7647c628bb0875fb13998
|
||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
@@ -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
|
||||
|
@@ -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
Reference in New Issue
Block a user