diff --git a/test/cases/020_kernel/006_config_4.14.x/test.sh b/test/cases/020_kernel/006_config_4.14.x/test.sh new file mode 100644 index 000000000..ec2bd3ed2 --- /dev/null +++ b/test/cases/020_kernel/006_config_4.14.x/test.sh @@ -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 diff --git a/test/cases/020_kernel/006_config_4.14.x/test.yml b/test/cases/020_kernel/006_config_4.14.x/test.yml new file mode 100644 index 000000000..ebe7ddc7b --- /dev/null +++ b/test/cases/020_kernel/006_config_4.14.x/test.yml @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..48440c966 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.yml new file mode 100644 index 000000000..a6380c187 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.sh new file mode 100644 index 000000000..2b842759d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.yml new file mode 100644 index 000000000..3f2b9e3c8 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..5db10bae2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.yml new file mode 100644 index 000000000..7d50b87f7 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.sh new file mode 100644 index 000000000..f31241072 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.yml new file mode 100644 index 000000000..7d50b87f7 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..d56fa1eca --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.yml new file mode 100644 index 000000000..32ecd22d6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.sh new file mode 100644 index 000000000..451482015 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.yml new file mode 100644 index 000000000..32ecd22d6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..681aa5690 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.yml new file mode 100644 index 000000000..8d7fb82ff --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.sh new file mode 100644 index 000000000..2e439c023 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.yml new file mode 100644 index 000000000..fb3788e99 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..e3981dad8 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.yml new file mode 100644 index 000000000..e5c477d40 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.sh new file mode 100644 index 000000000..e9b0a2fc6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.yml new file mode 100644 index 000000000..e5c477d40 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..a3bde3083 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.yml new file mode 100644 index 000000000..ee955eefe --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.sh new file mode 100644 index 000000000..217479cf1 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.yml new file mode 100644 index 000000000..ee955eefe --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..a63800d4d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.yml new file mode 100644 index 000000000..304fef287 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.sh new file mode 100644 index 000000000..cdac9a483 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.yml new file mode 100644 index 000000000..c0655a9a4 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..542be314f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.yml new file mode 100644 index 000000000..57dd4859a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.sh new file mode 100644 index 000000000..2ddcd9280 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.yml new file mode 100644 index 000000000..57dd4859a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..db48d1f2f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.yml new file mode 100644 index 000000000..5795f9d9c --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.sh new file mode 100644 index 000000000..50d4569f0 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.yml new file mode 100644 index 000000000..5795f9d9c --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..512101bec --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.yml new file mode 100644 index 000000000..c340baa24 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.sh new file mode 100644 index 000000000..e0bb379d2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.yml new file mode 100644 index 000000000..994254542 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..bd322b16c --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.yml new file mode 100644 index 000000000..ae72e6201 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.sh new file mode 100644 index 000000000..b1565660a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.yml new file mode 100644 index 000000000..ae72e6201 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..eb1d1171d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.yml new file mode 100644 index 000000000..b9a54147f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.sh new file mode 100644 index 000000000..17bad482d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.yml new file mode 100644 index 000000000..b9a54147f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..96ef9223d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.yml new file mode 100644 index 000000000..2e77d6b11 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.sh new file mode 100644 index 000000000..471b4222f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.yml new file mode 100644 index 000000000..3762d4fba --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..512042037 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.yml new file mode 100644 index 000000000..944147953 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.sh new file mode 100644 index 000000000..8bf14b78b --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.yml new file mode 100644 index 000000000..944147953 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..d1cca637e --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.yml new file mode 100644 index 000000000..c77c4e382 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.sh new file mode 100644 index 000000000..9e2b08ba0 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.yml new file mode 100644 index 000000000..c77c4e382 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..af0286699 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.yml new file mode 100644 index 000000000..ae11e0f19 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.sh new file mode 100644 index 000000000..17ba91764 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.yml new file mode 100644 index 000000000..87b7db37a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..6b0ff92cb --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.yml new file mode 100644 index 000000000..71bbe7945 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.sh new file mode 100644 index 000000000..ed86fb859 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.yml new file mode 100644 index 000000000..71bbe7945 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..3071827da --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.yml new file mode 100644 index 000000000..30da30aa7 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.sh new file mode 100644 index 000000000..28d58bd06 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.yml new file mode 100644 index 000000000..30da30aa7 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..770eed1b3 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.yml new file mode 100644 index 000000000..c1b3090c6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.sh new file mode 100644 index 000000000..3dbb6e740 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.yml new file mode 100644 index 000000000..4fe55fa67 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..96b781974 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.yml new file mode 100644 index 000000000..6240ffa3f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.sh new file mode 100644 index 000000000..3355c8322 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.yml new file mode 100644 index 000000000..6240ffa3f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..bb17ddcdb --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.yml new file mode 100644 index 000000000..ef9cf50fc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.sh new file mode 100644 index 000000000..8c8150f40 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.yml new file mode 100644 index 000000000..ef9cf50fc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..919735129 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.yml new file mode 100644 index 000000000..9002496da --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.sh new file mode 100644 index 000000000..ec328b8fe --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.yml new file mode 100644 index 000000000..bd11b77c2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..1fa811933 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.yml new file mode 100644 index 000000000..c3d0d88d4 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.sh new file mode 100644 index 000000000..8c106b5a6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.yml new file mode 100644 index 000000000..c3d0d88d4 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..c3d419e85 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.yml new file mode 100644 index 000000000..bfc0126f2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.sh new file mode 100644 index 000000000..77da56f79 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.yml new file mode 100644 index 000000000..bfc0126f2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.yml @@ -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"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/group.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/group.sh new file mode 100644 index 000000000..91c199ee2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/010_veth/group.sh @@ -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 + diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..cde07a2a4 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single-reverse/test.sh @@ -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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single-reverse/test.yml new file mode 100644 index 000000000..be8d68009 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single-reverse/test.yml @@ -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", "-p", "unix", "-s", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single/test.sh new file mode 100644 index 000000000..389e227e9 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a single short connection over a unix domain socket +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single/test.yml new file mode 100644 index 000000000..e429ce9a9 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/010_echo-short-1con-single/test.yml @@ -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", "-p", "unix", "-s", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..c2eff9ae5 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single-reverse/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with 10 concurrent short connections 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single-reverse/test.yml new file mode 100644 index 000000000..3c88eaed3 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single-reverse/test.yml @@ -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", "-p", "unix", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single/test.sh new file mode 100644 index 000000000..15f817161 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with 10 concurrent short connections over a unix domain socket +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single/test.yml new file mode 100644 index 000000000..3c88eaed3 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/011_echo-short-10con-single/test.yml @@ -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", "-p", "unix", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..2d9f47982 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with multiple instances of 5 concurrent short connections 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.yml new file mode 100644 index 000000000..7abfaf1c6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.yml @@ -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", "-p", "unix", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi/test.sh new file mode 100644 index 000000000..8e532284f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with multiple instances of 5 concurrent short connections over a unix domain socket +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi/test.yml new file mode 100644 index 000000000..7abfaf1c6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/012_echo-short-5con-multi/test.yml @@ -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", "-p", "unix", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..fb1657082 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single-reverse/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a single long running 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single-reverse/test.yml new file mode 100644 index 000000000..288e5f563 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single-reverse/test.yml @@ -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", "-p", "unix", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single/test.sh new file mode 100644 index 000000000..6c92f82d5 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a single long running connection over a unix domain socket +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single/test.yml new file mode 100644 index 000000000..d539db0e6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/015_echo-long-1con-single/test.yml @@ -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", "-p", "unix", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..352beef41 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single-reverse/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with 10 concurrent long running connections 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single-reverse/test.yml new file mode 100644 index 000000000..67ce08a6c --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single-reverse/test.yml @@ -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", "-p", "unix", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single/test.sh new file mode 100644 index 000000000..e0503fcf6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with 10 concurrent long running connections over a unix domain socket +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single/test.yml new file mode 100644 index 000000000..67ce08a6c --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/016_echo-long-10con-single/test.yml @@ -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", "-p", "unix", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..5b4cb13c0 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running connections 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.yml new file mode 100644 index 000000000..44d386b28 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.yml @@ -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", "-p", "unix", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi/test.sh new file mode 100644 index 000000000..aa40686bc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with multiple instances of 5 concurrent long running connections over a unix domain socket +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi/test.yml new file mode 100644 index 000000000..44d386b28 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/017_echo-long-5con-multi/test.yml @@ -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", "-p", "unix", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/group.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/group.sh new file mode 100644 index 000000000..91c199ee2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/050_unix-domain/group.sh @@ -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 + diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/010_veth-unix-domain-echo/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/010_veth-unix-domain-echo/test.sh new file mode 100644 index 000000000..8b086cb4a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/010_veth-unix-domain-echo/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a mix of concurrent TCP/UDP/IPv4/IPv6 and unix domain socket connections +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/010_veth-unix-domain-echo/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/010_veth-unix-domain-echo/test.yml new file mode 100644 index 000000000..783101f62 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/010_veth-unix-domain-echo/test.yml @@ -0,0 +1,10 @@ +onboot: + - name: test-ns + image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48 + command: ["/bin/sh", "/runp-runc-net.sh", "mix"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/011_veth-unix-domain-echo-reverse/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/011_veth-unix-domain-echo-reverse/test.sh new file mode 100644 index 000000000..31470eacb --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/011_veth-unix-domain-echo-reverse/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a mix of concurrent TCP/UDP/IPv4/IPv6 and unix domain socket connections in reverse direction +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/011_veth-unix-domain-echo-reverse/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/011_veth-unix-domain-echo-reverse/test.yml new file mode 100644 index 000000000..19ed90677 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/011_veth-unix-domain-echo-reverse/test.yml @@ -0,0 +1,10 @@ +onboot: + - name: test-ns + image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48 + command: ["/bin/sh", "/runp-runc-net.sh", "mix-reverse"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/012_veth-ipv4-echo/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/012_veth-ipv4-echo/test.sh new file mode 100644 index 000000000..5a4068273 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/012_veth-ipv4-echo/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a mix of concurrent TCP/UDP IPv4 socket connections +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/012_veth-ipv4-echo/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/012_veth-ipv4-echo/test.yml new file mode 100644 index 000000000..688f24589 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/012_veth-ipv4-echo/test.yml @@ -0,0 +1,10 @@ +onboot: + - name: test-ns + image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48 + command: ["/bin/sh", "/runp-runc-net.sh", "mix-ipv4"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/013_veth-ipv6-echo/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/013_veth-ipv6-echo/test.sh new file mode 100644 index 000000000..45fbab7d0 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/013_veth-ipv6-echo/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a mix of concurrent TCP/UDP IPv6 socket connections +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/013_veth-ipv6-echo/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/013_veth-ipv6-echo/test.yml new file mode 100644 index 000000000..fbaa3327b --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/013_veth-ipv6-echo/test.yml @@ -0,0 +1,10 @@ +onboot: + - name: test-ns + image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48 + command: ["/bin/sh", "/runp-runc-net.sh", "mix-ipv6"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/014_veth-tcp-echo/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/014_veth-tcp-echo/test.sh new file mode 100644 index 000000000..646888e7d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/014_veth-tcp-echo/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a mix of concurrent TCP socket connections +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/014_veth-tcp-echo/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/014_veth-tcp-echo/test.yml new file mode 100644 index 000000000..46e46515e --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/014_veth-tcp-echo/test.yml @@ -0,0 +1,10 @@ +onboot: + - name: test-ns + image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48 + command: ["/bin/sh", "/runp-runc-net.sh", "mix-tcp"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/015_veth-udp-echo/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/015_veth-udp-echo/test.sh new file mode 100644 index 000000000..9a9f134e2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/015_veth-udp-echo/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a mix of concurrent UDP socket connections +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/015_veth-udp-echo/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/015_veth-udp-echo/test.yml new file mode 100644 index 000000000..fbbfdba05 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/015_veth-udp-echo/test.yml @@ -0,0 +1,10 @@ +onboot: + - name: test-ns + image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48 + command: ["/bin/sh", "/runp-runc-net.sh", "mix-udp"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/020_unix-domain-echo/test.sh b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/020_unix-domain-echo/test.sh new file mode 100644 index 000000000..9bf9c0dd9 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/020_unix-domain-echo/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# SUMMARY: Namespace stress with a mix of concurrent unix domain socket connections +# 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 diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/020_unix-domain-echo/test.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/020_unix-domain-echo/test.yml new file mode 100644 index 000000000..eec29265e --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/100_mix/020_unix-domain-echo/test.yml @@ -0,0 +1,10 @@ +onboot: + - name: test-ns + image: linuxkit/test-ns:1fca30ea85c94571200d00c7b282c537b537de48 + command: ["/bin/sh", "/runp-runc-net.sh", "mix-unix"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:280bd01daa8776fbe1f4d912977f1886b8374834 + command: ["/bin/sh", "/poweroff.sh", "3"] diff --git a/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/common.yml b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/common.yml new file mode 100644 index 000000000..7c836a4e3 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/006_kernel-4.14.x/common.yml @@ -0,0 +1,9 @@ +kernel: + image: linuxkit/kernel:4.14 + cmdline: "console=ttyS0" +init: + - linuxkit/init:42a92119e1ca10380e0d33e26c0cbcf85b9b3558 + - linuxkit/runc:817fdc592eac6cb7804fa1721a43a7f6e23fb50f +trust: + org: + - linuxkit