]> git.ipfire.org Git - thirdparty/systemd.git/blame - travis-ci/managers/xenial.sh
travis: also run TEST-01-BASIC with QEMU to cover udevd and so on
[thirdparty/systemd.git] / travis-ci / managers / xenial.sh
CommitLineData
17662042
EV
1#!/bin/bash
2
3set -e
4set -x
5
6add-apt-repository ppa:pitti/systemd-semaphore -y
7apt-get update
8apt-get build-dep systemd -y
9apt-get install -y util-linux libmount-dev libblkid-dev liblzma-dev libqrencode-dev libmicrohttpd-dev iptables-dev liblz4-dev libcurl4-gnutls-dev unifont itstool kbd cryptsetup-bin net-tools isc-dhcp-client iputils-ping strace qemu-system-x86 linux-image-virtual mount libgpg-error-dev libxkbcommon-dev python-lxml python3-lxml python3-pip libcap-dev
10apt-get install -y gettext python3-evdev python3-pyparsing libmount-dev python3-setuptools ninja-build
11pip3 install meson
12
13cd $REPO_ROOT
14
15sed -i 's/2\.30/2.27/' meson.build
16
17meson --werror -Db_sanitize=address,undefined -Dsplit-usr=true build
18ninja -v -C build
9103671d 19make -C test/TEST-01-BASIC clean setup run TEST_NO_QEMU=yes NSPAWN_ARGUMENTS=--keep-unit RUN_IN_UNPRIVILEGED_CONTAINER=no
71cf890b
EV
20
21# Now that we're more or less sure that ASan isn't going to crash systemd and cause a kernel panic
22# let's also run the test with QEMU to cover udevd, sysctl and everything else that isn't run
23# in containers.
24make -C test/TEST-01-BASIC clean setup run TEST_NO_NSPAWN=yes