tests: Add basic integration testing

Add basic integration testing of the hypervisor using a cloud-init to
configure the VM at boot and SSH to control it at runtime.

Initial test just boots the VM up checks some basic resources and
reboots. With a second test that calls into the first to check that
subsequent tests work correctly.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2019-05-23 16:45:13 +01:00
parent f63d4a7418
commit ddce3df826
7 changed files with 423 additions and 1 deletions

18
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,18 @@
stage ("Builds") {
node ('bionic') {
stage ('Checkout') {
checkout scm
}
stage ('Install system packages') {
sh "sudo apt-get -y install build-essential mtools libssl-dev pkg-config"
}
stage ('Install Rust') {
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
}
stage ('Run integration tests') {
sh "sudo chmod a+rw /dev/kvm"
sh "scripts/run_integration_tests.sh"
}
}
}