From 13e5a05a4ccc7f57796183dc3ee809378cc73fef Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Tue, 22 Aug 2017 18:32:44 +0100 Subject: [PATCH] tests: Add tests for 4.12.x kernels Signed-off-by: Rolf Neugebauer --- .../004_config_4.12.x/test-kernel-config.yml | 15 +++++++++ .../020_kernel/004_config_4.12.x/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../017_echo-tcp-ipv4-long-5con-multi/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../027_echo-tcp-ipv6-long-5con-multi/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../037_echo-udp-ipv4-long-5con-multi/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../047_echo-udp-ipv6-long-5con-multi/test.sh | 22 +++++++++++++ .../004_kernel-4.12.x/010_veth/group.sh | 31 +++++++++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../010_echo-short-1con-single/test-ns.yml | 19 ++++++++++++ .../010_echo-short-1con-single/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../011_echo-short-10con-single/test-ns.yml | 19 ++++++++++++ .../011_echo-short-10con-single/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../012_echo-short-5con-multi-reverse/test.sh | 22 +++++++++++++ .../012_echo-short-5con-multi/test-ns.yml | 19 ++++++++++++ .../012_echo-short-5con-multi/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../015_echo-long-1con-single-reverse/test.sh | 22 +++++++++++++ .../015_echo-long-1con-single/test-ns.yml | 19 ++++++++++++ .../015_echo-long-1con-single/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../test.sh | 22 +++++++++++++ .../016_echo-long-10con-single/test-ns.yml | 19 ++++++++++++ .../016_echo-long-10con-single/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../017_echo-long-5con-multi-reverse/test.sh | 22 +++++++++++++ .../017_echo-long-5con-multi/test-ns.yml | 19 ++++++++++++ .../017_echo-long-5con-multi/test.sh | 22 +++++++++++++ .../050_unix-domain/group.sh | 31 +++++++++++++++++++ .../010_veth-unix-domain-echo/test-ns.yml | 19 ++++++++++++ .../100_mix/010_veth-unix-domain-echo/test.sh | 22 +++++++++++++ .../test-ns.yml | 19 ++++++++++++ .../011_veth-unix-domain-echo-reverse/test.sh | 22 +++++++++++++ .../100_mix/012_veth-ipv4-echo/test-ns.yml | 19 ++++++++++++ .../100_mix/012_veth-ipv4-echo/test.sh | 22 +++++++++++++ .../100_mix/013_veth-ipv6-echo/test-ns.yml | 19 ++++++++++++ .../100_mix/013_veth-ipv6-echo/test.sh | 22 +++++++++++++ .../100_mix/014_veth-tcp-echo/test-ns.yml | 19 ++++++++++++ .../100_mix/014_veth-tcp-echo/test.sh | 22 +++++++++++++ .../100_mix/015_veth-udp-echo/test-ns.yml | 19 ++++++++++++ .../100_mix/015_veth-udp-echo/test.sh | 22 +++++++++++++ .../100_mix/020_unix-domain-echo/test-ns.yml | 19 ++++++++++++ .../100_mix/020_unix-domain-echo/test.sh | 22 +++++++++++++ 138 files changed, 2846 insertions(+) create mode 100644 test/cases/020_kernel/004_config_4.12.x/test-kernel-config.yml create mode 100644 test/cases/020_kernel/004_config_4.12.x/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/group.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/group.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/010_veth-unix-domain-echo/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/010_veth-unix-domain-echo/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/011_veth-unix-domain-echo-reverse/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/011_veth-unix-domain-echo-reverse/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/012_veth-ipv4-echo/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/012_veth-ipv4-echo/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/013_veth-ipv6-echo/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/013_veth-ipv6-echo/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/014_veth-tcp-echo/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/014_veth-tcp-echo/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/015_veth-udp-echo/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/015_veth-udp-echo/test.sh create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/020_unix-domain-echo/test-ns.yml create mode 100644 test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/020_unix-domain-echo/test.sh diff --git a/test/cases/020_kernel/004_config_4.12.x/test-kernel-config.yml b/test/cases/020_kernel/004_config_4.12.x/test-kernel-config.yml new file mode 100644 index 000000000..9d7edbc4d --- /dev/null +++ b/test/cases/020_kernel/004_config_4.12.x/test-kernel-config.yml @@ -0,0 +1,15 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: check-kernel-config + image: linuxkit/test-kernel-config:d58766bb6c0def3df9e6ffc645ee11677f127faa + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/004_config_4.12.x/test.sh b/test/cases/020_kernel/004_config_4.12.x/test.sh new file mode 100644 index 000000000..4200bd918 --- /dev/null +++ b/test/cases/020_kernel/004_config_4.12.x/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-kernel-config*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-kernel-config.yml +RESULT="$(linuxkit run test-kernel-config)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..91de26811 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..cba65b71d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test-ns.yml new file mode 100644 index 000000000..6c712bc2b --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.sh new file mode 100644 index 000000000..231d023fc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/010_echo-tcp-ipv4-short-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..2593c8fb7 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..5a9eac70c --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test-ns.yml new file mode 100644 index 000000000..2593c8fb7 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.sh new file mode 100644 index 000000000..da4e2128f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/011_echo-tcp-ipv4-short-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..230fb2a3f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..e4493a4a8 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test-ns.yml new file mode 100644 index 000000000..230fb2a3f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.sh new file mode 100644 index 000000000..13466889d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/012_echo-tcp-ipv4-short-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..e4512982e --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..90f00bb5c --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test-ns.yml new file mode 100644 index 000000000..6428ad4ce --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.sh new file mode 100644 index 000000000..d767c37b9 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/015_echo-tcp-ipv4-long-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..a8836c6bc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..90bb5af9d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test-ns.yml new file mode 100644 index 000000000..a8836c6bc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.sh new file mode 100644 index 000000000..edfd0e8bc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/016_echo-tcp-ipv4-long-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..ab1aedaaf --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..1d6fc940d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test-ns.yml new file mode 100644 index 000000000..ab1aedaaf --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "tcp", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.sh new file mode 100644 index 000000000..6d4316fd4 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/017_echo-tcp-ipv4-long-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..addba89a7 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..25e54209e --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test-ns.yml new file mode 100644 index 000000000..3f0aa7140 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.sh new file mode 100644 index 000000000..2c5a5d12b --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/020_echo-tcp-ipv6-short-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..442633cbe --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..4d5c27311 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test-ns.yml new file mode 100644 index 000000000..442633cbe --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.sh new file mode 100644 index 000000000..8cd7170c5 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/021_echo-tcp-ipv6-short-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..ebfe08034 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..a6ccb1ac4 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test-ns.yml new file mode 100644 index 000000000..ebfe08034 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.sh new file mode 100644 index 000000000..c4ba65fb9 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/022_echo-tcp-ipv6-short-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..cb9853c9e --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..f662ba4bc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test-ns.yml new file mode 100644 index 000000000..528657a64 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.sh new file mode 100644 index 000000000..d6fa196a2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/025_echo-tcp-ipv6-long-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..ab9984489 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..c5f11ebe5 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test-ns.yml new file mode 100644 index 000000000..ab9984489 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.sh new file mode 100644 index 000000000..0c04a64aa --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/026_echo-tcp-ipv6-long-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..65f15ab19 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..364974dc8 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test-ns.yml new file mode 100644 index 000000000..65f15ab19 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "tcp", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.sh new file mode 100644 index 000000000..43793f978 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/027_echo-tcp-ipv6-long-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..476aea3e4 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..f0c52ed63 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single/test-ns.yml new file mode 100644 index 000000000..df6f02e75 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.sh new file mode 100644 index 000000000..7877974e8 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/030_echo-udp-ipv4-short-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..4c554b3ab --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..62b20154f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single/test-ns.yml new file mode 100644 index 000000000..4c554b3ab --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.sh new file mode 100644 index 000000000..1aa637d69 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/031_echo-udp-ipv4-short-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..6663f4183 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..89866c467 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test-ns.yml new file mode 100644 index 000000000..6663f4183 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.sh new file mode 100644 index 000000000..fe2a7eb0c --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/032_echo-udp-ipv4-short-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..9352f7a98 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..efac42676 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single/test-ns.yml new file mode 100644 index 000000000..719a9b03c --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.sh new file mode 100644 index 000000000..7a8bbb5b4 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/035_echo-udp-ipv4-long-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..056f9091b --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..3bf9a6784 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single/test-ns.yml new file mode 100644 index 000000000..056f9091b --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.sh new file mode 100644 index 000000000..ae68a0a6f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/036_echo-udp-ipv4-long-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..9f4449264 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..32c91ccba --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test-ns.yml new file mode 100644 index 000000000..9f4449264 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "4", "-p", "udp", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.sh new file mode 100644 index 000000000..ef028133a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/037_echo-udp-ipv4-long-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..abe2814f3 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..713b3f173 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single/test-ns.yml new file mode 100644 index 000000000..abec461d9 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.sh new file mode 100644 index 000000000..3e42aff05 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/040_echo-udp-ipv6-short-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..5c2b2c6fe --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..c9576fe50 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single/test-ns.yml new file mode 100644 index 000000000..5c2b2c6fe --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.sh new file mode 100644 index 000000000..498d6574b --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/041_echo-udp-ipv6-short-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..49206d26f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..c16132ac0 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test-ns.yml new file mode 100644 index 000000000..49206d26f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-s", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.sh new file mode 100644 index 000000000..8e3408c51 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/042_echo-udp-ipv6-short-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..81556fea1 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "1", "-r"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..18983c5d5 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single/test-ns.yml new file mode 100644 index 000000000..ca8e60bd8 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "1"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.sh new file mode 100644 index 000000000..788ff254a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/045_echo-udp-ipv6-long-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..e43ae56fa --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..96eeacbae --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single/test-ns.yml new file mode 100644 index 000000000..e43ae56fa --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "1", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "10"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.sh new file mode 100644 index 000000000..f139a57ae --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/046_echo-udp-ipv6-long-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..b1ba6146a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..9055b9249 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test-ns.yml new file mode 100644 index 000000000..b1ba6146a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "5", "-l", "5", "-i", "15", "-ip", "6", "-p", "udp", "-c", "5"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.sh new file mode 100644 index 000000000..e8a092e3d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/047_echo-udp-ipv6-long-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/group.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/010_veth/group.sh new file mode 100644 index 000000000..91c199ee2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.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/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..b0ce46e53 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single-reverse/test.sh new file mode 100644 index 000000000..5652242b7 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single/test-ns.yml new file mode 100644 index 000000000..c639276b6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single/test.sh new file mode 100644 index 000000000..de81ba7c3 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/010_echo-short-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..e662fcef2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single-reverse/test.sh new file mode 100644 index 000000000..6f7d002d1 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single/test-ns.yml new file mode 100644 index 000000000..e662fcef2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single/test.sh new file mode 100644 index 000000000..b4ef7aa81 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/011_echo-short-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..6aee68592 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.sh new file mode 100644 index 000000000..02ce084cb --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi/test-ns.yml new file mode 100644 index 000000000..6aee68592 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi/test.sh new file mode 100644 index 000000000..1ee5cbc31 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/012_echo-short-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single-reverse/test-ns.yml new file mode 100644 index 000000000..5aac69230 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single-reverse/test.sh new file mode 100644 index 000000000..7f15e1fd1 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single/test-ns.yml new file mode 100644 index 000000000..59fbd8222 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single/test.sh new file mode 100644 index 000000000..2c91a1a3f --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/015_echo-long-1con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single-reverse/test-ns.yml new file mode 100644 index 000000000..2dd752dfe --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single-reverse/test.sh new file mode 100644 index 000000000..5d1825049 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single/test-ns.yml new file mode 100644 index 000000000..2dd752dfe --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single/test.sh new file mode 100644 index 000000000..8a3021f34 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/016_echo-long-10con-single/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi-reverse/test-ns.yml new file mode 100644 index 000000000..c246f7cbc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.sh new file mode 100644 index 000000000..57bc80527 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi/test-ns.yml new file mode 100644 index 000000000..c246f7cbc --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + 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:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi/test.sh new file mode 100644 index 000000000..69e33b219 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/017_echo-long-5con-multi/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/group.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/050_unix-domain/group.sh new file mode 100644 index 000000000..91c199ee2 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.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/004_kernel-4.12.x/100_mix/010_veth-unix-domain-echo/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/010_veth-unix-domain-echo/test-ns.yml new file mode 100644 index 000000000..f4b70d98d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/010_veth-unix-domain-echo/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "mix"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/010_veth-unix-domain-echo/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/010_veth-unix-domain-echo/test.sh new file mode 100644 index 000000000..ce5ef5b6e --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/010_veth-unix-domain-echo/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/011_veth-unix-domain-echo-reverse/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/011_veth-unix-domain-echo-reverse/test-ns.yml new file mode 100644 index 000000000..e1b132e96 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/011_veth-unix-domain-echo-reverse/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "mix-reverse"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/011_veth-unix-domain-echo-reverse/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/011_veth-unix-domain-echo-reverse/test.sh new file mode 100644 index 000000000..fd5d3fc5d --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/011_veth-unix-domain-echo-reverse/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/012_veth-ipv4-echo/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/012_veth-ipv4-echo/test-ns.yml new file mode 100644 index 000000000..f549b7d74 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/012_veth-ipv4-echo/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "mix-ipv4"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/012_veth-ipv4-echo/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/012_veth-ipv4-echo/test.sh new file mode 100644 index 000000000..42ce7cf90 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/012_veth-ipv4-echo/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/013_veth-ipv6-echo/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/013_veth-ipv6-echo/test-ns.yml new file mode 100644 index 000000000..e595be133 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/013_veth-ipv6-echo/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "mix-ipv6"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/013_veth-ipv6-echo/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/013_veth-ipv6-echo/test.sh new file mode 100644 index 000000000..6c5e45bb3 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/013_veth-ipv6-echo/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/014_veth-tcp-echo/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/014_veth-tcp-echo/test-ns.yml new file mode 100644 index 000000000..9ed30e8d6 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/014_veth-tcp-echo/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "mix-tcp"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/014_veth-tcp-echo/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/014_veth-tcp-echo/test.sh new file mode 100644 index 000000000..a82f00887 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/014_veth-tcp-echo/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/015_veth-udp-echo/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/015_veth-udp-echo/test-ns.yml new file mode 100644 index 000000000..ca27f6e06 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/015_veth-udp-echo/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "mix-udp"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/015_veth-udp-echo/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/015_veth-udp-echo/test.sh new file mode 100644 index 000000000..51f12a887 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/015_veth-udp-echo/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/020_unix-domain-echo/test-ns.yml b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/020_unix-domain-echo/test-ns.yml new file mode 100644 index 000000000..ac8a5fd6a --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/020_unix-domain-echo/test-ns.yml @@ -0,0 +1,19 @@ +kernel: + image: linuxkit/kernel:4.12.8 + cmdline: "console=ttyS0" +init: + - linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac + - linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a +onboot: + - name: test-ns + image: linuxkit/test-ns:8e93e61e46ebcb302761eca0180e4c7f43e60bcf + command: ["/bin/sh", "/runp-runc-net.sh", "mix-unix"] + mounts: # for runc + - type: cgroup + options: ["rw"] + - name: poweroff + image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998 + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit diff --git a/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/020_unix-domain-echo/test.sh b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/020_unix-domain-echo/test.sh new file mode 100644 index 000000000..9ede8d360 --- /dev/null +++ b/test/cases/020_kernel/110_namespace/004_kernel-4.12.x/100_mix/020_unix-domain-echo/test.sh @@ -0,0 +1,22 @@ +#!/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" + +clean_up() { + find . -depth -iname "test-ns*" -not -iname "*.yml" -exec rm -rf {} \; +} +trap clean_up EXIT + +# Test code goes here +moby build -output kernel+initrd test-ns.yml +RESULT="$(linuxkit run -cpus 2 test-ns)" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0