mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-31 22:47:12 +00:00
Signed-off-by: Avi Deitcher <avi@deitcher.net> Signed-off-by: Avi Deitcher <avi@deitcher.net>
26 lines
470 B
Bash
Executable File
26 lines
470 B
Bash
Executable File
#!/bin/sh
|
|
# SUMMARY: Check that ctr can run containers
|
|
# Test is amd64 specific
|
|
# LABELS: amd64
|
|
# REPEAT:
|
|
|
|
set -e
|
|
|
|
# Source libraries. Uncomment if needed/defined
|
|
#. "${RT_LIB}"
|
|
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
|
|
|
NAME=test-ctr
|
|
|
|
clean_up() {
|
|
rm -rf ${NAME}-*
|
|
}
|
|
trap clean_up EXIT
|
|
|
|
linuxkit build --format kernel+initrd --name "${NAME}" test.yml
|
|
[ -f "${NAME}-kernel" ] || exit 1
|
|
[ -f "${NAME}-initrd.img" ] || exit 1
|
|
[ -f "${NAME}-cmdline" ]|| exit 1
|
|
./test.exp
|
|
exit 0
|