tests: Add build test for cadvisor example

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-11-22 19:38:41 +00:00
parent bc185996f9
commit b7b773d4ba

View File

@ -0,0 +1,22 @@
#!/bin/sh
# SUMMARY: Test the cadvisor example
# LABELS:
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
NAME=cadvisor
clean_up() {
rm -f ${NAME}*
}
trap clean_up EXIT
# Test code goes here
linuxkit build "${LINUXKIT_EXAMPLES_DIR}/${NAME}.yml"
exit 0