mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
ddce3df826
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>
19 lines
410 B
Groovy
19 lines
410 B
Groovy
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"
|
|
}
|
|
}
|
|
}
|
|
|