mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-19 17:38:10 +00:00
Also add libelf-dev as this is needed for ORC_UNWINDER. While this is only a feature of 4.14.x we added it to all Dockerfiles to keep things in synch. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
16 lines
314 B
Bash
Executable File
16 lines
314 B
Bash
Executable File
#!/bin/sh
|
|
function failed {
|
|
printf "Kernel module test suite FAILED\n"
|
|
/sbin/poweroff -f
|
|
}
|
|
|
|
uname -a
|
|
modinfo hello_world.ko || failed
|
|
insmod hello_world.ko || failed
|
|
[ -n "$(dmesg | grep -o 'Hello LinuxKit')" ] || failed
|
|
rmmod hello_world || failed
|
|
|
|
printf "Kernel module test suite PASSED\n"
|
|
|
|
/sbin/poweroff -f
|