Starts a VM to run upstream tests on Fedora using Vagrant.
Install required packages run Vagrant on Fedora
sudo dnf install -y libvirt vagrant vagrant-libvirt
Download the Vangrantfile to a directory where vagrant will be executed from.
All vagrant commands should be executed from this directory
Allow libvirt to run without asking for password
sudo gpasswd -a ${USER} libvirt
newgrp libvirt
Run vagrant command to start a VM, the first time might take a while to download the image. Execute vagrant command within same directory where Vagrantfile is located.
vagrant up
It is possible to automatically start the VM and automatically run the test for a package.
vagrant --test-name=<package-name> up
Eg.
vagrant --test-name=diffutils up
Connect via ssh to the VM, all tools required to run upstream tests will be already installed.
vagrant ssh
Once the VM is not needed it should be removed.
vagrant destroy