From a65b91c0c98f70067143f0450c09a15e807cda80 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Mon, 18 Sep 2017 13:38:26 +0100 Subject: [PATCH] tests: Add a build test for the LCOW blueprint Signed-off-by: Rolf Neugebauer --- .../000_build/200_blueprints/020_lcow/test.sh | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/cases/000_build/200_blueprints/020_lcow/test.sh 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 +