]> git.ipfire.org Git - thirdparty/systemd.git/blob - travis-ci/managers/xenial.sh
Merge pull request #12510 from keszybz/test-directives
[thirdparty/systemd.git] / travis-ci / managers / xenial.sh
1 #!/bin/bash
2 set -e
3 set -x
4
5 PACKAGES=(cryptsetup-bin
6 gettext
7 iptables-dev
8 iputils-ping
9 isc-dhcp-client
10 itstool
11 kbd
12 libblkid-dev
13 libcap-dev
14 libcurl4-gnutls-dev
15 libgpg-error-dev
16 liblz4-dev
17 liblzma-dev
18 libmicrohttpd-dev
19 libmount-dev
20 libmount-dev
21 libqrencode-dev
22 libxkbcommon-dev
23 linux-image-virtual
24 mount
25 net-tools
26 ninja-build
27 perl
28 python-lxml
29 python3-evdev
30 python3-lxml
31 python3-pip
32 python3-pyparsing
33 python3-setuptools
34 qemu-system-x86
35 strace
36 unifont
37 util-linux)
38
39 bash -c "echo 'deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse' >>/etc/apt/sources.list"
40
41 apt-get update
42 apt-get build-dep systemd -y
43 apt-get install -y "${PACKAGES[@]}"
44 pip3 install meson
45
46 cd ${REPO_ROOT:-$PWD}
47
48 sed -i 's/2\.30/2.27/' meson.build
49
50 meson --werror -Db_sanitize=address,undefined -Dsplit-usr=true -Dman=true build
51 ninja -v -C build
52
53 make -C test/TEST-01-BASIC clean setup run NSPAWN_TIMEOUT=600 TEST_NO_QEMU=yes NSPAWN_ARGUMENTS=--keep-unit RUN_IN_UNPRIVILEGED_CONTAINER=no
54
55 # Now that we're more or less sure that ASan isn't going to crash systemd and cause a kernel panic
56 # let's also run the test with QEMU to cover udevd, sysctl and everything else that isn't run
57 # in containers.
58
59 # This should be turned on once `journalctl --flush` isn't flaky any more
60 #make -C test/TEST-01-BASIC clean setup run QEMU_TIMEOUT=900 TEST_NO_NSPAWN=yes