mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
tests: Add build test for cadvisor example
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
bc185996f9
commit
b7b773d4ba
22
test/cases/000_build/100_examples/080_cadvisor/test.sh
Normal file
22
test/cases/000_build/100_examples/080_cadvisor/test.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user