passt: Relicense to GPL 2.0, or any later version
In practical terms, passt doesn't benefit from the additional
protection offered by the AGPL over the GPL, because it's not
suitable to be executed over a computer network.
Further, restricting the distribution under the version 3 of the GPL
wouldn't provide any practical advantage either, as long as the passt
codebase is concerned, and might cause unnecessary compatibility
dilemmas.
Change licensing terms to the GNU General Public License Version 2,
or any later version, with written permission from all current and
past contributors, namely: myself, David Gibson, Laine Stump, Andrea
Bolognani, Paul Holzinger, Richard W.M. Jones, Chris Kuhn, Florian
Weimer, Giuseppe Scrivano, Stefan Hajnoczi, and Vasiliy Ulyanov.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2023-04-05 20:11:44 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
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 07:45:16 +01:00
|
|
|
#
|
|
|
|
# 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/ubuntu - Ubuntu builds, get packages via passt, test pasta
|
|
|
|
#
|
|
|
|
# Copyright (c) 2021 Red Hat GmbH
|
|
|
|
# Author: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
2022-09-13 06:35:23 +02:00
|
|
|
set PIDFILE __STATEDIR__/passt.pid
|
2022-07-06 09:29:09 +02:00
|
|
|
htools qemu-img virt-edit guestfish cat kill qemu-system-x86_64 qemu-system-ppc64 qemu-system-s390x
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
# Quick pasta test: send message from init to ns, and from ns to init
|
|
|
|
def distro_quick_pasta_test
|
2022-08-18 08:13:49 +02:00
|
|
|
host (socat -u TCP6-LISTEN:10000 OPEN:/tmp/init_msg,create,trunc; echo "from_init" | socat -u STDIN TCP6:[::1]:9999) &
|
|
|
|
hostb ./pasta
|
|
|
|
sleep 1
|
|
|
|
host PS1='$ '
|
|
|
|
host socat -u TCP6-LISTEN:9999 OPEN:/tmp/ns_msg,create,trunc &
|
|
|
|
sleep 2
|
|
|
|
host echo "from_ns" | socat -u STDIN TCP6:[::1]:10000
|
|
|
|
sleep 2
|
|
|
|
host echo
|
|
|
|
sleep 1
|
|
|
|
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
|
|
|
|
|
|
|
|
# Quick pasta test: netcat-openbsd version for Ubuntu 16.04 ppc64
|
|
|
|
def distro_quick_pasta_test_netcat
|
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 07:45:16 +01:00
|
|
|
host (nc -w1 -6 -l -p 10000 > /tmp/init_msg; echo "from_init" | nc -q0 ::1 9999) &
|
|
|
|
hostb ./pasta
|
|
|
|
sleep 1
|
|
|
|
host PS1='$ '
|
|
|
|
host nc -w1 -6 -l -p 9999 > /tmp/ns_msg &
|
|
|
|
sleep 2
|
|
|
|
host echo "from_ns" | nc -q0 ::1 10000
|
|
|
|
sleep 2
|
|
|
|
host echo
|
2022-01-30 03:09:46 +01: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 07:45:16 +01: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-09-05 14:32:14 +02:00
|
|
|
# With systemd-resolved and TCG, DNS might take a while to work
|
|
|
|
def dns_ready_wait
|
|
|
|
host r=10; while [ \${r} -gt 0 ]; do host ubuntu.com && break; sleep 5; r=\$((r - 1)); done
|
|
|
|
endef
|
|
|
|
|
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 07:45:16 +01:00
|
|
|
# Start passt, set common variables
|
2022-11-04 02:16:21 +01:00
|
|
|
hostb ./passt -s __STATEDIR__/passt.socket -P __PIDFILE__ &
|
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 07:45:16 +01:00
|
|
|
sleep 1
|
|
|
|
host echo
|
2022-08-10 00:21:09 +02:00
|
|
|
hout GUEST_FILES ls -1 *.c *.h *.sh passt.1 qrap.1 Makefile README.md | tr '\n' ' '; echo
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
test Ubuntu 14.04.5 LTS (Trusty Tahr), amd64
|
|
|
|
|
2022-09-13 06:35:23 +02:00
|
|
|
set IMG __STATEDIR__/ubuntu-14.04-amd64.img
|
2022-07-06 09:29:07 +02:00
|
|
|
host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/trusty-server-cloudimg-amd64-disk1.img __IMG__
|
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 07:45:16 +01:00
|
|
|
host virt-edit -a __IMG__ /etc/init/ttyS0.conf -e 's/\/getty/\/getty --autologin root/'
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-config.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-final.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init-container.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init-local.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init-nonet.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-log-shutdown.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/
|
|
|
|
|
2022-11-04 02:16:21 +01:00
|
|
|
host qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none -drive file=__IMG__,if=virtio -device virtio-net-pci,netdev=s0 -netdev stream,id=s0,server=off,addr.type=unix,addr.path=__STATEDIR__/passt.socket
|
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 07:45:16 +01:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host apt-get update
|
2022-08-18 08:13:49 +02:00
|
|
|
host apt-get -y install make gcc socat
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
host make clean
|
2022-05-12 08:43:33 +02:00
|
|
|
host CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces -Wno-type-limits" make
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
# TODO: pasta test skipped for the moment: clone() as called by NS_CALL hangs
|
|
|
|
# with wrapper provided by glibc 2.19, probably wrong argument order.
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
# PIDFILE is cleaned up when the next test starts, read it now
|
|
|
|
hout PID cat __PIDFILE__
|
|
|
|
|
|
|
|
|
|
|
|
test Ubuntu 14.04.5 LTS (Trusty Tahr), i386
|
|
|
|
|
2022-09-13 06:35:23 +02:00
|
|
|
set IMG __STATEDIR__/ubuntu-14.04-i386.img
|
2022-07-06 09:29:07 +02:00
|
|
|
host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/trusty-server-cloudimg-i386-disk1.img __IMG__
|
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 07:45:16 +01:00
|
|
|
host virt-edit -a __IMG__ /etc/init/ttyS0.conf -e 's/\/getty/\/getty --autologin root/'
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-config.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-final.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init-container.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init-local.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init-nonet.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-log-shutdown.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/
|
|
|
|
|
2022-11-04 02:16:21 +01:00
|
|
|
host qemu-system-x86_64 -M pc,accel=kvm:tcg -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none -drive file=__IMG__,if=virtio -device virtio-net-pci,netdev=s0 -netdev stream,id=s0,server=off,addr.type=unix,addr.path=__STATEDIR__/passt.socket
|
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 07:45:16 +01:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host apt-get update
|
2022-08-18 08:13:49 +02:00
|
|
|
host apt-get -y install make gcc socat
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
host make clean
|
2022-05-12 08:43:33 +02:00
|
|
|
host CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces -Wno-type-limits -Wno-sign-compare" make
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
# TODO: pasta test skipped for the moment: clone() as called by NS_CALL hangs
|
|
|
|
# with wrapper provided by glibc 2.19, probably wrong argument order.
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
|
|
|
|
test Ubuntu 14.04.5 LTS (Trusty Tahr), ppc64le
|
|
|
|
|
2022-09-13 06:35:23 +02:00
|
|
|
set IMG __STATEDIR__/ubuntu-14.04-ppc64le.img
|
2022-07-06 09:29:07 +02:00
|
|
|
host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/trusty-server-cloudimg-ppc64el-disk1.img __IMG__
|
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 07:45:16 +01:00
|
|
|
host virt-edit -a __IMG__ /etc/init/hvc0.conf -e 's/\/getty/\/getty --autologin root/'
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-config.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-final.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init-container.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init-local.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init-nonet.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-init.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-log-shutdown.conf
|
|
|
|
host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/
|
|
|
|
|
2022-11-04 02:16:21 +01:00
|
|
|
host qemu-system-ppc64 -m 2048 -smp 2 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -device virtio-net-pci,netdev=s0 -netdev stream,id=s0,server=off,addr.type=unix,addr.path=__STATEDIR__/passt.socket
|
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 07:45:16 +01:00
|
|
|
host PS1='$ '
|
|
|
|
sleep 2
|
|
|
|
host apt-get update
|
2022-08-18 08:13:49 +02:00
|
|
|
host apt-get -y install make gcc socat
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
host make clean
|
2022-05-12 08:43:33 +02:00
|
|
|
host CFLAGS="-Wno-missing-field-initializers -Wno-missing-braces -Wno-type-limits -Wno-sign-compare" make
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
# TODO: pasta test skipped for the moment: clone() as called by NS_CALL hangs
|
|
|
|
# with wrapper provided by glibc 2.19, probably wrong argument order.
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
test Ubuntu 16.04 LTS (Xenial Xerus), ppc64 (be)
|
|
|
|
|
2022-11-04 02:16:21 +01:00
|
|
|
host qemu-system-ppc64 -m 1024 -M pseries -nographic -nodefaults -serial stdio -no-reboot -nographic -vga none -hda __BASEPATH__/prepared-xenial-server-cloudimg-powerpc-disk1.img -device virtio-net-pci,netdev=s0 -netdev stream,id=s0,server=off,addr.type=unix,addr.path=__STATEDIR__/passt.socket -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 07:45:16 +01:00
|
|
|
host PS1='$ '
|
2022-06-10 04:32:43 +02:00
|
|
|
host dhclient -4
|
2022-01-30 04:06:43 +01:00
|
|
|
# Skip apt-get update here: some updates to xenial-updates around 2022-01-30
|
|
|
|
# broke dependencies for libc6 and gcc-5 -- note that powerpc is not officially
|
|
|
|
# supported on this version
|
2022-08-18 08:13:49 +02:00
|
|
|
|
|
|
|
# socat not available: install netcat-openbsd and run the test with it
|
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 07:45:16 +01:00
|
|
|
host apt-get -y install make gcc netcat-openbsd
|
|
|
|
|
|
|
|
host make clean
|
2022-05-12 08:43:33 +02:00
|
|
|
host CFLAGS="-Werror" make
|
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 07:45:16 +01:00
|
|
|
|
2022-08-18 08:13:49 +02:00
|
|
|
distro_quick_pasta_test_netcat
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
test Ubuntu 22.04 (Jammy Jellyfish), s390x
|
2022-07-06 09:29:08 +02:00
|
|
|
|
2022-11-04 02:16:21 +01:00
|
|
|
host qemu-system-s390x -m 2048 -smp 2 -serial stdio -nodefaults -nographic __BASEPATH__/prepared-jammy-server-cloudimg-s390x.img -device virtio-net-pci,netdev=s0 -netdev stream,id=s0,server=off,addr.type=unix,addr.path=__STATEDIR__/passt.socket -device virtio-rng-ccw -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 07:45:16 +01:00
|
|
|
|
2022-02-17 23:53:00 +01:00
|
|
|
host export DEBIAN_FRONTEND=noninteractive
|
2022-09-22 23:00:18 +02:00
|
|
|
host service systemd-networkd stop
|
|
|
|
host service systemd-resolved stop
|
|
|
|
host rm /etc/dhcp/dhclient-enter-hooks.d/resolved-enter
|
2022-06-10 04:32:43 +02:00
|
|
|
host dhclient -4
|
2022-09-05 14:32:14 +02:00
|
|
|
dns_ready_wait
|
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 07:45:16 +01:00
|
|
|
host apt-get update
|
2022-08-18 08:13:49 +02:00
|
|
|
host apt-get -y install make gcc socat
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
host make clean
|
2022-05-12 08:43:33 +02:00
|
|
|
host CFLAGS="-Werror" make
|
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 07:45:16 +01:00
|
|
|
|
|
|
|
host export SHELL="/bin/dash"
|
|
|
|
host dash
|
|
|
|
distro_quick_pasta_test
|
|
|
|
|
|
|
|
hint
|
|
|
|
sleep 1
|
|
|
|
hostb reset
|
|
|
|
sleep 1
|
|
|
|
host echo
|
|
|
|
|
|
|
|
|
|
|
|
host kill __PID__
|