• Home
  • Raw
  • Download

Lines Matching refs:TARGET

133 	TRIGGER=$(basename ${TARGET})
153 echo -n $VAL > $TARGET
158 if [ ! -z $TARGET ] && [ ! -z $ORIG ]; then
159 if [ -f ${TARGET} ]; then
160 echo "${ORIG}" > "${TARGET}"
167 echo "${TEST_STR}" > "${TARGET}"
223 echo "== Testing sysctl behavior against ${TARGET} =="
237 if verify "${TARGET}"; then
246 if ! verify "${TARGET}"; then
255 if verify "${TARGET}"; then
268 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null
269 if ! verify "${TARGET}"; then
278 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 skip=1 2>/dev/null
279 if ! verify "${TARGET}"; then
288 dd if="${TEST_FILE}" of="${TARGET}" bs=20 seek=2 2>/dev/null
289 if verify "${TARGET}"; then
299 dd of="${TARGET}" bs=50 2>/dev/null
300 if verify "${TARGET}"; then
314 orig="$(cat $TARGET)"
315 echo -n "$TEST_STR" > $TARGET 2> /dev/null
318 if [ $? = 0 ] || [ "$(cat $TARGET)" != "$orig" ]; then
370 dd of="${TARGET}" 2>/dev/null
372 if ! verify "${TARGET}"; then
386 dd of="${TARGET}" 2>/dev/null
388 if verify "${TARGET}"; then
403 echo -n $TEST_STR > $TARGET
405 if ! verify "${TARGET}"; then
416 echo -n $TEST_STR > $TARGET 2> /dev/null
418 if verify "${TARGET}"; then
429 echo -n $TEST_STR > $TARGET 2> /dev/null
430 if ! verify "${TARGET}"; then
444 echo -n $TEST_STR > $TARGET
446 if ! verify_diff_w "${TARGET}"; then
458 echo -n $TEST_STR > $TARGET
463 if ! verify_diff_w "${TARGET}"; then
478 dd of="${TARGET}" 2>/dev/null
481 if ! verify_diff_w "${TARGET}"; then
495 dd of="${TARGET}" 2>/dev/null
498 if verify_diff_w "${TARGET}"; then
513 echo -n $TEST_STR > $TARGET
515 if ! verify "${TARGET}"; then
526 echo -n $TEST_STR > $TARGET 2> /dev/null
528 if verify "${TARGET}"; then
539 echo -n $TEST_STR > $TARGET 2> /dev/null
541 if verify "${TARGET}"; then
554 dd if="${TEST_FILE}" of="${TARGET}" bs=1 2>/dev/null
555 if ! verify "${TARGET}"; then
564 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 2>/dev/null
565 if verify "${TARGET}"; then
575 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
576 if ! grep -q B "${TARGET}"; then
586 dd of="${TARGET}" bs=$(( MAXLEN - 1 )) 2>/dev/null
587 if grep -q B "${TARGET}"; then
597 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
598 if grep -q B "${TARGET}"; then
608 dd of="${TARGET}" bs=$(( $MAXLEN + 1 )) 2>/dev/null
609 if grep -q B "${TARGET}"; then
621 TARGET="${SYSCTL}/$1"
624 if [ ! -f ${TARGET} ] ; then
625 echo "Target for test $TEST_ID: $TARGET not exist, skipping test ..."
663 cat $TEST_FILE > $TARGET 2> /dev/null
670 if ! verify_diff_proc_file "$TARGET" "$TEST_FILE"; then
682 TARGET="${SYSCTL}/$(get_test_target 0001)"
684 ORIG=$(cat "${TARGET}")
694 TARGET="${SYSCTL}/$(get_test_target 0002)"
696 ORIG=$(cat "${TARGET}")
707 TARGET="${SYSCTL}/$(get_test_target 0003)"
709 ORIG=$(cat "${TARGET}")
720 TARGET="${SYSCTL}/$(get_test_target 0004)"
722 ORIG=$(cat "${TARGET}")
733 TARGET="${SYSCTL}/$(get_test_target 0005)"
735 ORIG=$(cat "${TARGET}")
742 TARGET="${SYSCTL}/bitmap_0001"
750 TARGET="${SYSCTL}/boot_int"
751 if [ ! -f $TARGET ]; then
752 echo "Skipping test for $TARGET as it is not present ..."
762 echo -n "Testing if $TARGET is set to 1 ..."
763 ORIG=$(cat "${TARGET}")
778 echo "Kernel param found but $TARGET is not 1, TEST FAILED"