Files
linuxkit/test/cases/040_packages/019_sysctl/check.sh
Rolf Neugebauer 15a05d6260 tests: Simplify sysctl test
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>
2017-05-29 11:42:06 +01:00

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