tests: Add a build test for the LCOW blueprint

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-09-18 13:38:26 +01:00
parent 40afebb2c9
commit a65b91c0c9

View File

@ -0,0 +1,26 @@
#!/bin/sh
# SUMMARY: Test the build of LCOW blueprint
# LABELS:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=lcow
clean_up() {
rm -f ${NAME}-*
}
trap clean_up EXIT
# Test code goes here
moby build -format kernel+initrd -name "${NAME}" "${LINUXKIT_BLUEPRINTS_DIR}/lcow.yml"
[ -f "${NAME}-kernel" ] || exit 1
[ -f "${NAME}-initrd.img" ] || exit 1
[ -f "${NAME}-cmdline" ] || exit 1
exit 0