kata-containers/tools/osbuilder/tests
Jeremi Piotrowski 439ff9d4c4 tools/osbuilder/tests: Remove TRAVIS variable
The last remaining user of the TRAVIS variable in this repo is
tools/osbuilder/tests and it is only used to skip spinning up VMs. Travis
didn't support virtualization and the same is true for github actions hosted
runners. Replace the variable with KVM_MISSING and determine availability of
/dev/kvm at runtime.

TRAVIS is also used by '.ci/setup.sh' in kata-containers/tests to reduce the
set of dependencies that gets installed, but this is also in the process of
being removed.

Fixes: #3544
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2023-03-09 13:29:49 +01:00
..
README.md docs: Remove table of contents 2021-07-30 10:58:22 +01:00
test_config.sh osbuilder: Drop Go agent support 2021-08-05 16:10:10 +10:00
test_images.sh tools/osbuilder/tests: Remove TRAVIS variable 2023-03-09 13:29:49 +01:00

Run the osbuilder tests

osbuilder provides a test script that creates all rootfs disk images and initrd images for all supported distributions and then tests them to ensure a Kata Container can be created with each.

Before the build phase, the test script installs the Docker container manager and all the Kata components required to run test containers. Individual tests will also alter host kata-runtime and docker service configuration as needed.

All host config editing can be skipped by setting the environment variable KATA_DEV_MODE to a non-empty value. In this mode, image/initrd targets will be built but not runtime tested; If your host is configured to have kata-runtime set as the default docker runtime, you will need to switch to a runtime like runc/crun so the docker build test commands work correctly.

$ ./test_images.sh

Further information

The test script provides various options to modify the way it runs. For full details:

$ ./test_images.sh -h