Add simulation testing of custom iso #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "spike-simulation-testing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
We need a reliable way of testing that the OS installs and configures correctly. By using a virtual machine and installing the ktc custom iso, we can then run tests within the VM to assert it is configured correctly and behaving correctly.
This approach needs to be high fidelity and make it easy to write new tests.
Solution
Using Deno package
@antman/sim-testmakes simulation tests easy to write.Running a VM using
virt-installand connecting viavirshrequires ensuringisattyreturns true as both these programmes expect a tty. The easiest way to do this was to spawn a pseudo terminal using python.Added testing utilities to make simplify developing additional tests in future. I think this is a good basis to start with that leaves plenty of room to improve things in future.