-
Notifications
You must be signed in to change notification settings - Fork 200
/
spread.yaml
50 lines (45 loc) · 1.52 KB
/
spread.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
project: netplan
backends:
lxd:
systems: [ubuntu-24.04]
qemu:
systems:
- ubuntu-24.04-64:
username: ubuntu
password: ubuntu
suites:
tests/spread/:
summary: integration tests
path: /home/tests
prepare: |
# FIXME: having the debian packging available would allow "apt
# build-dep -y ./" would make this easier :)
add-apt-repository -y -u -s ppa:slyon/netplan-ci
apt update -qq
apt install -y ubuntu-dev-tools devscripts equivs
pull-lp-source netplan.io
sed -i 's| openvswitch-switch|# DELETED: openvswitch-switch|' netplan.io-*/debian/control
mk-build-deps -i -r -B -s sudo -t "apt-get -y -o Debug::pkgProblemResolver=yes --no-install-recommends" netplan.io-*/debian/control
# install, a bit ugly but this is a container (did I mention the packaging?)
meson setup build --prefix=/usr
meson compile -C build
#meson test -C build --verbose, cannot run OVS test in container
rm -rf /usr/share/netplan/netplan # clear (old) system installation
meson install -C build --destdir=/
# set some defaults
cat > /etc/netplan/0-snapd-defaults.yaml <<'EOF'
network:
version: 2
bridges:
br54:
dhcp4: true
EOF
chmod 0600 /etc/netplan/0-snapd-defaults.yaml
echo "Precondition check, the basics work"
netplan get bridges.br54.dhcp4 | MATCH true
# keep original config around
tar cvf "$SPREAD_PATH"/etc-netplan.tar.gz /etc/netplan/
restore-each: |
# restore original netplan dir
rm -rf /etc/netplan/*
(cd / && tar xvf "$SPREAD_PATH"/etc-netplan.tar.gz)