Files
linuxkit/test/cases/020_kernel/000_config/test.sh
Rolf Neugebauer cb2b74cfc9 tests: Rename linuxkit.config to linuxkit.kernel
Removed LTP tests and the stress test group as hey weren't run via rtf.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-05-16 15:39:34 +01:00

24 lines
488 B
Bash

#!/bin/sh
# SUMMARY: Sanity check on the kernel config file
# LABELS:
# REPEAT:
# AUTHOR: Dave Tucker <dt@docker.com>
set -e
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
clean_up() {
find . -iname "test-kernel-config*" -not -iname "*.yml" -exec rm -rf {} \;
}
trap clean_up EXIT
# Test code goes here
moby build test-kernel-config
RESULT="$(linuxkit run qemu test-kernel-config)"
echo "${RESULT}" | grep -q "suite PASSED"
exit 0