mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-23 17:53:07 +00:00
e03563221d
Currently, vmtest runs a custom program as init in the guest that communicates with the host via virtio-serial. This is a lot of C code that turns out can be replaced with a shell script. In order to keep the dependencies minimal, we use BusyBox.
28 lines
755 B
YAML
28 lines
755 B
YAML
dist: bionic
|
|
|
|
language: python
|
|
python:
|
|
- '3.8'
|
|
- '3.7'
|
|
- '3.6'
|
|
install:
|
|
# Upstream defaults to world-read-writeable /dev/kvm. Debian/Ubuntu override
|
|
# this; see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892945. We want
|
|
# the upstream default.
|
|
- sudo echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /lib/udev/rules.d/99-fix-kvm.rules > /dev/null
|
|
- sudo udevadm control --reload-rules
|
|
# On systemd >= 238 we can use udevadm trigger -w and remove udevadm settle.
|
|
- sudo udevadm trigger /dev/kvm
|
|
- sudo udevadm settle
|
|
script: python setup.py test -K
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- busybox-static
|
|
- libbz2-dev
|
|
- liblzma-dev
|
|
- qemu-kvm
|
|
- zlib1g-dev
|
|
- zstd
|