Permalink
Browse files

tests: add linuxkit bake case

Signed-off-by: Robin Winkelewski <w9ncontact@gmail.com>
  • Loading branch information...
w9n committed Jan 9, 2018
1 parent 2911de5 commit bfaa9e7fc599a8b9edba4429ae513f0736411fce
Showing with 24 additions and 0 deletions.
  1. +24 −0 test/cases/000_build/100_examples/090_bake/test.sh
@@ -0,0 +1,24 @@
#!/bin/sh
# SUMMARY: Test linuxkit bake
# LABELS:

set -e

# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=linuxkit_template
LINUXKIT_PKG_ROOT="${RT_PROJECT_ROOT}/../../pkg"
LINUXKIT_BAKED="${NAME}_baked.yml"

clean_up() {
rm -f ${NAME}*
}

trap clean_up EXIT

# Test code goes here
linuxkit bake --pkgroot "${LINUXKIT_PKG_ROOT}" "${LINUXKIT_EXAMPLES_DIR}/${NAME}.yml" > "${LINUXKIT_BAKED}"
linuxkit build -name "${NAME}" "${LINUXKIT_BAKED}"

exit 0

0 comments on commit bfaa9e7

Please sign in to comment.