Files
linuxkit/test/pkg/sysctl/check.sh
Justin Cormack 345a294b5e Add a test case for the sysctl package
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-19 22:05:08 +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