mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-16 21:42:33 +00:00
Don't rely on systctl test package. Instead, add the check shell script to the image and execute it with a standard Alpine image. While at it, make the test more verbose. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
12 lines
251 B
Bash
Executable File
12 lines
251 B
Bash
Executable File
#!/bin/sh
|
|
|
|
function failed {
|
|
printf "sysctl test suite FAILED\n" >&1
|
|
exit 1
|
|
}
|
|
|
|
# this is a non default value, so will fail if sysctl failed
|
|
[ "$(sysctl -n fs.inotify.max_user_watches)" -eq 524288 ] || failed
|
|
|
|
printf "sysctl test suite PASSED\n" >&1
|