The vmtests are a suite of tests which verify that noisicaä is compatible with the officially supported set of distributions.
The tests run under virtualbox, install a minimal version of each distribution, build noisicaä from source and then run the test suite.
Before you can run test vmtests, you might have to install some additional packages:
./waf configure --enable-vmtests --download --install-system-packages
The VMs are stored in a
vmtests directory. That directory will contain some large files, so if you
don't want those to be place in your home directory (e.g. because it's hosted on a NFS server, you
don't want to waste precious space on your SSD, etc.), you can create it as a symlink to some
mkdir /path/to/vmtests ln -s /path/to/vmtests vmtests
Running the tests
venv/bin/python -m noisidev.runvmtests
Each distribution runs in a separate VM.
Distributions are named
When no argument is given, tests for all supported distributions are run. You can restrict the tests by listing the desired distributions as arguments:
venv/bin/python -m noisidev.runvmtests ubuntu-16.04
Once a the distribution has been installed in a VM, a snapshot called 'clean' is created. On subsequent runs that snapshot gets restored, so the tests always run from the same state. If you just want to retry a test without reverting to the clean state, use
If you want to reinstall the VMs from scratch, use
Debugging test failures
If inspecting the output is not sufficient to pin down the problem, you can restart the VM in the state as it was after the test finished:
venv/bin/python -m noisidev.runvmtests --just-start $DISTNAME
Login as user
testuser with passwork
123, change into the
noiscaa directory and active the