Lines Matching refs:TARGET
130 TRIGGER=$(basename ${TARGET})
150 echo -n $VAL > $TARGET
155 if [ ! -z $TARGET ] && [ ! -z $ORIG ]; then
156 if [ -f ${TARGET} ]; then
157 echo "${ORIG}" > "${TARGET}"
164 echo "${TEST_STR}" > "${TARGET}"
220 echo "== Testing sysctl behavior against ${TARGET} =="
234 if verify "${TARGET}"; then
243 if ! verify "${TARGET}"; then
252 if verify "${TARGET}"; then
265 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null
266 if ! verify "${TARGET}"; then
275 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 skip=1 2>/dev/null
276 if ! verify "${TARGET}"; then
285 dd if="${TEST_FILE}" of="${TARGET}" bs=20 seek=2 2>/dev/null
286 if verify "${TARGET}"; then
296 dd of="${TARGET}" bs=50 2>/dev/null
297 if verify "${TARGET}"; then
311 orig="$(cat $TARGET)"
312 echo -n "$TEST_STR" > $TARGET 2> /dev/null
315 if [ $? = 0 ] || [ "$(cat $TARGET)" != "$orig" ]; then
367 dd of="${TARGET}" 2>/dev/null
369 if ! verify "${TARGET}"; then
383 dd of="${TARGET}" 2>/dev/null
385 if verify "${TARGET}"; then
400 echo -n $TEST_STR > $TARGET
402 if ! verify "${TARGET}"; then
413 echo -n $TEST_STR > $TARGET 2> /dev/null
415 if verify "${TARGET}"; then
426 echo -n $TEST_STR > $TARGET 2> /dev/null
427 if ! verify "${TARGET}"; then
441 echo -n $TEST_STR > $TARGET
443 if ! verify_diff_w "${TARGET}"; then
455 echo -n $TEST_STR > $TARGET
460 if ! verify_diff_w "${TARGET}"; then
475 dd of="${TARGET}" 2>/dev/null
478 if ! verify_diff_w "${TARGET}"; then
492 dd of="${TARGET}" 2>/dev/null
495 if verify_diff_w "${TARGET}"; then
510 echo -n $TEST_STR > $TARGET
512 if ! verify "${TARGET}"; then
523 echo -n $TEST_STR > $TARGET 2> /dev/null
525 if verify "${TARGET}"; then
536 echo -n $TEST_STR > $TARGET 2> /dev/null
538 if verify "${TARGET}"; then
551 dd if="${TEST_FILE}" of="${TARGET}" bs=1 2>/dev/null
552 if ! verify "${TARGET}"; then
561 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 2>/dev/null
562 if verify "${TARGET}"; then
572 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
573 if ! grep -q B "${TARGET}"; then
583 dd of="${TARGET}" bs=$(( MAXLEN - 1 )) 2>/dev/null
584 if grep -q B "${TARGET}"; then
594 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
595 if grep -q B "${TARGET}"; then
605 dd of="${TARGET}" bs=$(( $MAXLEN + 1 )) 2>/dev/null
606 if grep -q B "${TARGET}"; then
618 TARGET="${SYSCTL}/$1"
621 if [ ! -f ${TARGET} ] ; then
659 cat $TEST_FILE > $TARGET 2> /dev/null
666 if ! verify_diff_proc_file "$TARGET" "$TEST_FILE"; then
678 TARGET="${SYSCTL}/$(get_test_target 0001)"
680 ORIG=$(cat "${TARGET}")
690 TARGET="${SYSCTL}/$(get_test_target 0002)"
692 ORIG=$(cat "${TARGET}")
703 TARGET="${SYSCTL}/$(get_test_target 0003)"
705 ORIG=$(cat "${TARGET}")
716 TARGET="${SYSCTL}/$(get_test_target 0004)"
718 ORIG=$(cat "${TARGET}")
729 TARGET="${SYSCTL}/$(get_test_target 0005)"
731 ORIG=$(cat "${TARGET}")
738 TARGET="${SYSCTL}/$(get_test_target 0006)"
746 TARGET="${SYSCTL}/$(get_test_target 0007)"
747 echo -n "Testing if $TARGET is set to 1 ... "
749 if [ ! -f $TARGET ]; then
750 echo -e "SKIPPING\n$TARGET is not present"
760 ORIG=$(cat "${TARGET}")
774 echo -e "FAIL\nKernel param found but $TARGET is not 1." >&2
786 TARGET="${SYSCTL}/$(get_test_target 0008)"
787 echo -n "Testing if $TARGET is matched in kernel ... "
789 if [ ! -f $TARGET ]; then
790 echo -e "SKIPPING\n$TARGET is not present"
794 ORIG_VALUE=$(cat "${TARGET}")
808 TARGET="${SYSCTL}/$(get_test_target 0009)"
809 echo -n "Testing if $TARGET unregistered correctly ... "
810 if [ -d $TARGET ]; then
822 TARGET="${SYSCTL}/$(get_test_target 0010)"
823 echo -n "Testing that $TARGET was not created ... "
824 if [ -d $TARGET ]; then
836 TARGET="${SYSCTL}/$(get_test_target 0011)"
837 echo -n "Testing empty dir handling in ${TARGET} ... "
838 if [ ! -d ${TARGET} ]; then
839 echo -e "FAIL\nCould not create ${TARGET}" >&2
844 TARGET2="${TARGET}/empty"
857 TARGET="${SYSCTL}/$(get_test_target 0012)"
858 echo -n "Testing u8 range check in sysctl table check in ${TARGET} ... "
859 if [ ! -f ${TARGET} ]; then
860 echo -e "FAIL\nCould not create ${TARGET}" >&2
1042 TARGET=$3
1044 if skip_test $TEST_ID $TARGET; then