diff --git a/test/cases/020_kernel/008_config_4.16.x/test.sh b/test/cases/020_kernel/008_config_4.16.x/test.sh new file mode 100644 index 000000000..fdfccb99c --- /dev/null +++ b/test/cases/020_kernel/008_config_4.16.x/test.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# SUMMARY: Sanity check on the kernel config file +# LABELS: +# REPEAT: + +set -e + +# Source libraries. Uncomment if needed/defined +#. "${RT_LIB}" +. "${RT_PROJECT_ROOT}/_lib/lib.sh" + +NAME=kconfig + +clean_up() { + rm -rf ${NAME}-* +} +trap clean_up EXIT + +# Test code goes here +linuxkit build -format kernel+initrd -name "${NAME}" test.yml +RESULT="$(linuxkit run ${NAME})" +echo "${RESULT}" | grep -q "suite PASSED" + +exit 0 diff --git a/test/cases/020_kernel/008_config_4.16.x/test.yml b/test/cases/020_kernel/008_config_4.16.x/test.yml new file mode 100644 index 000000000..2d9706af1 --- /dev/null +++ b/test/cases/020_kernel/008_config_4.16.x/test.yml @@ -0,0 +1,15 @@ +kernel: + image: linuxkit/kernel:4.16.1 + cmdline: "console=ttyS0 console=ttyAMA0" +init: + - linuxkit/init:v0.3 + - linuxkit/runc:v0.3 +onboot: + - name: check-kernel-config + image: linuxkit/test-kernel-config:12d9e1153ea4eec2ddb155ab2a782faca5f503e0 + - name: poweroff + image: linuxkit/poweroff:5740687bf0a6a0480922c0f59b3a4ca77c866cae + command: ["/bin/sh", "/poweroff.sh", "3"] +trust: + org: + - linuxkit