File: spread.yaml

package info (click to toggle)
netplan.io 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,268 kB
  • sloc: python: 34,640; ansic: 14,096; xml: 4,989; javascript: 2,165; sh: 513; makefile: 118
file content (50 lines) | stat: -rw-r--r-- 1,557 bytes parent folder | download | duplicates (3)
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)