mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-07 23:11:25 +00:00
This adds a test suite to be executed using `linuxkit/rtf`. This is installed in the top-level Makefile The tests are written in shell script and cover the following cases: - Kernel Config is OK! - Kernel Modules can be built and loaded - QEMU can build and run kernel+initrd, iso-bios and iso-uefi - That we can build for all other supported output formats - That all of the examples in `./examples` can be built - The LTP tests can be run (if `-l slow` is provided) The virtsock and docker-bench tests were migrated but no test has been written as yet as AFAICT they are still a WIP Signed-off-by: Dave Tucker <dt@docker.com>
26 lines
411 B
Bash
26 lines
411 B
Bash
#!/bin/sh
|
|
# SUMMARY: Test the docker example
|
|
# LABELS:
|
|
# AUTHOR: Dave Tucker <dt@docker.com>
|
|
|
|
set -e
|
|
|
|
# Source libraries. Uncomment if needed/defined
|
|
#. "${RT_LIB}"
|
|
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
|
|
|
IMAGE_NAME=docker
|
|
|
|
clean_up() {
|
|
# remove any files, containers, images etc
|
|
rm -rf ${IMAGE_NAME}*
|
|
}
|
|
|
|
trap clean_up EXIT
|
|
|
|
# Test code goes here
|
|
moby build "${LINUXKIT_EXAMPLES_DIR}/${IMAGE_NAME}.yml"
|
|
|
|
exit 0
|
|
|