test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
#
|
|
|
|
# PASST - Plug A Simple Socket Transport
|
|
|
|
# for qemu/UNIX domain socket mode
|
|
|
|
#
|
|
|
|
# PASTA - Pack A Subtle Tap Abstraction
|
|
|
|
# for network namespace/tap device mode
|
|
|
|
#
|
|
|
|
# test/distro/fedora - Fedora builds, get packages via passt, test pasta
|
|
|
|
#
|
|
|
|
# Copyright (c) 2021 Red Hat GmbH
|
|
|
|
# Author: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
|
temp PIDFILE
|
2022-07-06 07:29:09 +00:00
|
|
|
htools cat kill qemu-system-x86_64
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
|
|
|
|
# Quick pasta test: send message from init to ns, and from ns to init
|
|
|
|
def distro_quick_pasta_test
|
2022-06-10 02:32:41 +00:00
|
|
|
host (ncat -6 -l ::1 10000 > /tmp/init_msg; echo "from_init" | ncat ::1 9999) &
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
hostb ./pasta
|
|
|
|
sleep 1
|
|
|
|
host PS1='$ '
|
2022-06-10 02:32:41 +00:00
|
|
|
host ncat -6 -l ::1 9999 > /tmp/ns_msg &
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
sleep 2
|
2022-06-10 02:32:41 +00:00
|
|
|
host echo "from_ns" | ncat ::1 10000
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
sleep 2
|
|
|
|
host echo
|
2022-01-30 02:09:46 +00:00
|
|
|
sleep 1
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
hout NS_MSG cat /tmp/ns_msg
|
|
|
|
check [ __NS_MSG__ = "from_init" ]
|
|
|
|
hostb exit
|
|
|
|
host echo
|
|
|
|
hout INIT_MSG cat /tmp/init_msg
|
|
|
|
check [ __INIT_MSG__ = "from_ns" ]
|
|
|
|
endef
|
|
|
|
|
2022-06-10 02:32:41 +00:00
|
|
|
# Bracketed paste mode off, needed from Fedora 34
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
def distro_quick_pasta_test_fedora34
|
|
|
|
host bind 'set enable-bracketed-paste off'
|
2022-06-10 02:32:41 +00:00
|
|
|
host (ncat -6 -l ::1 10000 > /tmp/init_msg; echo "from_init" | ncat -6 ::1 9999) &
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
hostb ./pasta
|
|
|
|
sleep 1
|
|
|
|
host PS1='$ '
|
|
|
|
host bind 'set enable-bracketed-paste off'
|
2022-06-10 02:32:41 +00:00
|
|
|
host ncat -6 -l ::1 9999 > /tmp/ns_msg &
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
sleep 2
|
2022-06-10 02:32:41 +00:00
|
|
|
host echo "from_ns" | ncat -6 ::1 10000
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
sleep 2
|
|
|
|
host echo
|
|
|
|
hout NS_MSG cat /tmp/ns_msg
|
|
|
|
check [ __NS_MSG__ = "from_init" ]
|
|
|
|
hostb exit
|
|
|
|
host echo
|
|
|
|
hout INIT_MSG cat /tmp/init_msg
|
|
|
|
check [ __INIT_MSG__ = "from_ns" ]
|
|
|
|
endef
|
|
|
|
|
|
|
|
# Start passt, set common variables
|
|
|
|
hostb ./passt -P __PIDFILE__ &
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
test Fedora 26, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-26-1.5.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
# PIDFILE is cleaned up when the next test starts, read it now
|
|
|
|
hout PID cat __PIDFILE__
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 27, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-27-1.6.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 28, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-28-1.1.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 28, aarch64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios __BASEPATH__/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __BASEPATH__/prepared-Fedora-Cloud-Base-28-1.1.aarch64.qcow2 -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 29, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-29-1.2.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 29, aarch64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios __BASEPATH__/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __BASEPATH__/prepared-Fedora-Cloud-Base-29-1.2.aarch64.qcow2 -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 30, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-30-1.2.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 30, aarch64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios __BASEPATH__/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __BASEPATH__/prepared-Fedora-Cloud-Base-30-1.2.aarch64.qcow2 -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 31, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-31-1.9.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 31, aarch64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios __BASEPATH__/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __BASEPATH__/prepared-Fedora-Cloud-Base-31-1.9.aarch64.qcow2 -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 32, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-32-1.6.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 32, aarch64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios __BASEPATH__/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __BASEPATH__/prepared-Fedora-Cloud-Base-32-1.6.aarch64.qcow2 -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 33, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-33-1.2.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 33, aarch64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios __BASEPATH__/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __BASEPATH__/prepared-Fedora-Cloud-Base-33-1.2.aarch64.qcow2 -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 34, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-34-1.2.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test_fedora34
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 34, aarch64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios __BASEPATH__/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __BASEPATH__/prepared-Fedora-Cloud-Base-34-1.2.aarch64.qcow2 -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test_fedora34
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 35, x86_64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __BASEPATH__/prepared-Fedora-Cloud-Base-35-1.2.x86_64.qcow2 -net socket,fd=5 -net nic,model=virtio -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test_fedora34
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Fedora 35, aarch64
|
|
|
|
|
2022-07-06 07:29:08 +00:00
|
|
|
host ./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios __BASEPATH__/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __BASEPATH__/prepared-Fedora-Cloud-Base-35-1.2.aarch64.qcow2 -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci -snapshot
|
test: Add distribution tests for several architectures and kernel versions
The new tests check build and a simple case with pasta sending a
short message in both directions (namespace to init, init to
namespace).
Tests cover a mix of Debian, Fedora, OpenSUSE and Ubuntu combinations
on aarch64, i386, ppc64, ppc64le, s390x, x86_64.
Builds tested starting from approximately glibc 2.19, gcc 4.7, and
actual functionality approximately from 4.4 kernels, glibc 2.25,
gcc 4.8, all the way up to current glibc/gcc/kernel versions.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2022-01-26 06:45:16 +00:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host yum -y install make gcc nmap-ncat
|
|
|
|
|
|
|
|
host make clean
|
|
|
|
hout RET CFLAGS="-Werror" make; echo $?
|
|
|
|
check [ __RET__ -eq 0 ]
|
|
|
|
|
|
|
|
distro_quick_pasta_test_fedora34
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
host kill __PID__
|