Lines Matching full:target

17 # TEST_ID:TEST_COUNT:ENABLED:TARGET:SKIP_NO_TARGET
22 # TARGET: test target file required on the test_sysctl module
23 # SKIP_NO_TARGET: 1 skip if TARGET not there
24 # 0 run eventhough TARGET not there
128 TRIGGER=$(basename ${TARGET})
148 echo -n $VAL > $TARGET
153 if [ ! -z $TARGET ] && [ ! -z $ORIG ]; then
154 if [ -f ${TARGET} ]; then
155 echo "${ORIG}" > "${TARGET}"
162 echo "${TEST_STR}" > "${TARGET}"
218 echo "== Testing sysctl behavior against ${TARGET} =="
232 if verify "${TARGET}"; then
241 if ! verify "${TARGET}"; then
250 if verify "${TARGET}"; then
263 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null
264 if ! verify "${TARGET}"; then
273 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 skip=1 2>/dev/null
274 if ! verify "${TARGET}"; then
283 dd if="${TEST_FILE}" of="${TARGET}" bs=20 seek=2 2>/dev/null
284 if verify "${TARGET}"; then
294 dd of="${TARGET}" bs=50 2>/dev/null
295 if verify "${TARGET}"; then
309 orig="$(cat $TARGET)"
310 echo -n "$TEST_STR" > $TARGET 2> /dev/null
312 # write should fail and $TARGET should retain its original value
313 if [ $? = 0 ] || [ "$(cat $TARGET)" != "$orig" ]; then
365 dd of="${TARGET}" 2>/dev/null
367 if ! verify "${TARGET}"; then
381 dd of="${TARGET}" 2>/dev/null
383 if verify "${TARGET}"; then
398 echo -n $TEST_STR > $TARGET
400 if ! verify "${TARGET}"; then
411 echo -n $TEST_STR > $TARGET 2> /dev/null
413 if verify "${TARGET}"; then
424 echo -n $TEST_STR > $TARGET 2> /dev/null
425 if ! verify "${TARGET}"; then
439 echo -n $TEST_STR > $TARGET
441 if ! verify_diff_w "${TARGET}"; then
453 echo -n $TEST_STR > $TARGET
458 if ! verify_diff_w "${TARGET}"; then
473 dd of="${TARGET}" 2>/dev/null
476 if ! verify_diff_w "${TARGET}"; then
490 dd of="${TARGET}" 2>/dev/null
493 if verify_diff_w "${TARGET}"; then
508 echo -n $TEST_STR > $TARGET
510 if ! verify "${TARGET}"; then
521 echo -n $TEST_STR > $TARGET 2> /dev/null
523 if verify "${TARGET}"; then
534 echo -n $TEST_STR > $TARGET 2> /dev/null
536 if verify "${TARGET}"; then
549 dd if="${TEST_FILE}" of="${TARGET}" bs=1 2>/dev/null
550 if ! verify "${TARGET}"; then
559 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 2>/dev/null
560 if verify "${TARGET}"; then
570 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
571 if ! grep -q B "${TARGET}"; then
581 dd of="${TARGET}" bs=$(( MAXLEN - 1 )) 2>/dev/null
582 if grep -q B "${TARGET}"; then
592 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
593 if grep -q B "${TARGET}"; then
603 dd of="${TARGET}" bs=$(( $MAXLEN + 1 )) 2>/dev/null
604 if grep -q B "${TARGET}"; then
616 TARGET="${SYSCTL}/$1"
619 if [ ! -f ${TARGET} ] ; then
657 cat $TEST_FILE > $TARGET 2> /dev/null
664 if ! verify_diff_proc_file "$TARGET" "$TEST_FILE"; then
676 TARGET="${SYSCTL}/$(get_test_target 0001)"
678 ORIG=$(cat "${TARGET}")
688 TARGET="${SYSCTL}/$(get_test_target 0002)"
690 ORIG=$(cat "${TARGET}")
701 TARGET="${SYSCTL}/$(get_test_target 0003)"
703 ORIG=$(cat "${TARGET}")
714 TARGET="${SYSCTL}/$(get_test_target 0004)"
716 ORIG=$(cat "${TARGET}")
727 TARGET="${SYSCTL}/$(get_test_target 0005)"
729 ORIG=$(cat "${TARGET}")
736 TARGET="${SYSCTL}/$(get_test_target 0006)"
744 TARGET="${SYSCTL}/$(get_test_target 0007)"
745 if [ ! -f $TARGET ]; then
746 echo "Skipping test for $TARGET as it is not present ..."
756 echo -n "Testing if $TARGET is set to 1 ..."
757 ORIG=$(cat "${TARGET}")
772 echo "Kernel param found but $TARGET is not 1, TEST FAILED"
784 TARGET="${SYSCTL}/$(get_test_target 0008)"
785 if [ ! -f $TARGET ]; then
786 echo "Skipping test for $TARGET as it is not present ..."
790 echo -n "Testing if $TARGET is matched in kernel"
791 ORIG_VALUE=$(cat "${TARGET}")
805 TARGET="${SYSCTL}/$(get_test_target 0009)"
806 echo -n "Testing if $TARGET unregistered correctly ..."
807 if [ -d $TARGET ]; then
819 TARGET="${SYSCTL}/$(get_test_target 0010)"
820 echo -n "Testing that $TARGET was not created ..."
821 if [ -d $TARGET ]; then
937 echo "Target for test $TEST_ID: $TEST_TARGET not exist, skipping test ..."
988 TARGET=$3
990 if skip_test $TEST_ID $TARGET; then