mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 10:31:35 +00:00
tests: Add 4.20.x kernel config test
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
parent
77422d26c0
commit
8069c88396
24
test/cases/020_kernel/006_config_4.20.x/test.sh
Normal file
24
test/cases/020_kernel/006_config_4.20.x/test.sh
Normal file
@ -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
|
15
test/cases/020_kernel/006_config_4.20.x/test.yml
Normal file
15
test/cases/020_kernel/006_config_4.20.x/test.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
kernel:
|
||||||
|
image: linuxkit/kernel:4.20
|
||||||
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
||||||
|
init:
|
||||||
|
- linuxkit/init:c563953a2277eb73a89d89f70e4b6dcdcfebc2d1
|
||||||
|
- linuxkit/runc:83d0edb4552b1a5df1f0976f05f442829eac38fe
|
||||||
|
onboot:
|
||||||
|
- name: check-kernel-config
|
||||||
|
image: linuxkit/test-kernel-config:1aaef970b5f70791d74d6f980ad38af4035948f8
|
||||||
|
- name: poweroff
|
||||||
|
image: linuxkit/poweroff:afe8f7dd0d47a7991c54519b0f09124cb8c4e300
|
||||||
|
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||||
|
trust:
|
||||||
|
org:
|
||||||
|
- linuxkit
|
Loading…
Reference in New Issue
Block a user