Lines Matching full:sysctl

5 # This performs a series tests against the proc sysctl interface.
10 TEST_NAME="sysctl"
48 if [ -z $SYSCTL ]; then
49 SYSCTL="/proc/sys/debug/test_sysctl"
112 if [ ! -d $SYSCTL ]; then
219 echo "== Testing sysctl behavior against ${TARGET} =="
232 echo -n "Checking sysctl is not set to test value ... "
240 echo -n "Writing sysctl from shell ... "
249 echo -n "Resetting sysctl to original value ... "
262 echo -n "Writing entire sysctl in single write ... "
272 echo -n "Writing middle of sysctl after synchronized seek ... "
282 echo -n "Writing beyond end of sysctl ... "
292 echo -n "Writing sysctl with multiple long writes ... "
325 # sysctl conversion functions receive a boolean sign and ulong
329 # uint-typed sysctl should fail.
548 echo -n "Writing entire sysctl in short writes ... "
558 echo -n "Writing middle of sysctl after unsynchronized seek ... "
568 echo -n "Checking sysctl maxlen is at least $MAXLEN ... "
579 echo -n "Checking sysctl keeps original string on overflow append ... "
590 echo -n "Checking sysctl stays NULL terminated on write ... "
601 echo -n "Checking sysctl stays NULL terminated on overwrite ... "
617 TARGET="${SYSCTL}/$1"
677 TARGET="${SYSCTL}/$(get_test_target 0001)"
689 TARGET="${SYSCTL}/$(get_test_target 0002)"
692 TEST_STR="Testing sysctl"
702 TARGET="${SYSCTL}/$(get_test_target 0003)"
715 TARGET="${SYSCTL}/$(get_test_target 0004)"
728 TARGET="${SYSCTL}/$(get_test_target 0005)"
737 TARGET="${SYSCTL}/$(get_test_target 0006)"
745 TARGET="${SYSCTL}/$(get_test_target 0007)"
771 FOUND=$(grep -c "sysctl[./]debug[./]test_sysctl[./]boot_int=1" /proc/cmdline)
779 echo "Kernel must be booted with parameter: sysctl.debug.test_sysctl.boot_int=1"
785 TARGET="${SYSCTL}/$(get_test_target 0008)"
807 TARGET="${SYSCTL}/$(get_test_target 0009)"
821 TARGET="${SYSCTL}/$(get_test_target 0010)"
835 TARGET="${SYSCTL}/$(get_test_target 0011)"
868 echo "0007 x $(get_test_count 0007) - tests setting sysctl from kernel boot param"
869 echo "0008 x $(get_test_count 0008) - tests sysctl macro values match"