diff --git a/test/cases/000_build/200_blueprints/020_lcow/test.sh b/test/cases/000_build/200_blueprints/020_lcow/test.sh new file mode 100644 index 000000000..731cf0491 --- /dev/null +++ b/test/cases/000_build/200_blueprints/020_lcow/test.sh @@ -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 +