• Home
  • Raw
  • Download

Lines Matching refs:TARGET

140 	TRIGGER=$(basename ${TARGET})
160 echo -n $VAL > $TARGET
165 if [ ! -z $TARGET ] && [ ! -z $ORIG ]; then
166 if [ -f ${TARGET} ]; then
167 echo "${ORIG}" > "${TARGET}"
174 echo "${TEST_STR}" > "${TARGET}"
230 echo "== Testing sysctl behavior against ${TARGET} =="
244 if verify "${TARGET}"; then
253 if ! verify "${TARGET}"; then
262 if verify "${TARGET}"; then
275 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null
276 if ! verify "${TARGET}"; then
285 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 skip=1 2>/dev/null
286 if ! verify "${TARGET}"; then
295 dd if="${TEST_FILE}" of="${TARGET}" bs=20 seek=2 2>/dev/null
296 if verify "${TARGET}"; then
306 dd of="${TARGET}" bs=50 2>/dev/null
307 if verify "${TARGET}"; then
321 orig="$(cat $TARGET)"
322 echo -n "$TEST_STR" > $TARGET 2> /dev/null
325 if [ $? = 0 ] || [ "$(cat $TARGET)" != "$orig" ]; then
377 dd of="${TARGET}" 2>/dev/null
379 if ! verify "${TARGET}"; then
393 dd of="${TARGET}" 2>/dev/null
395 if verify "${TARGET}"; then
410 echo -n $TEST_STR > $TARGET
412 if ! verify "${TARGET}"; then
423 echo -n $TEST_STR > $TARGET 2> /dev/null
425 if verify "${TARGET}"; then
436 echo -n $TEST_STR > $TARGET 2> /dev/null
437 if ! verify "${TARGET}"; then
451 echo -n $TEST_STR > $TARGET
453 if ! verify_diff_w "${TARGET}"; then
465 echo -n $TEST_STR > $TARGET
470 if ! verify_diff_w "${TARGET}"; then
485 dd of="${TARGET}" 2>/dev/null
488 if ! verify_diff_w "${TARGET}"; then
502 dd of="${TARGET}" 2>/dev/null
505 if verify_diff_w "${TARGET}"; then
520 echo -n $TEST_STR > $TARGET
522 if ! verify "${TARGET}"; then
533 echo -n $TEST_STR > $TARGET 2> /dev/null
535 if verify "${TARGET}"; then
546 echo -n $TEST_STR > $TARGET 2> /dev/null
548 if verify "${TARGET}"; then
561 dd if="${TEST_FILE}" of="${TARGET}" bs=1 2>/dev/null
562 if ! verify "${TARGET}"; then
571 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 2>/dev/null
572 if verify "${TARGET}"; then
582 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
583 if ! grep -q B "${TARGET}"; then
593 dd of="${TARGET}" bs=$(( MAXLEN - 1 )) 2>/dev/null
594 if grep -q B "${TARGET}"; then
604 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
605 if grep -q B "${TARGET}"; then
615 dd of="${TARGET}" bs=$(( $MAXLEN + 1 )) 2>/dev/null
616 if grep -q B "${TARGET}"; then
628 TARGET="${SYSCTL}/$1"
631 if [ ! -f ${TARGET} ] ; then
632 echo "Target for test $TEST_ID: $TARGET not exist, skipping test ..."
670 cat $TEST_FILE > $TARGET 2> /dev/null
677 if ! verify_diff_proc_file "$TARGET" "$TEST_FILE"; then
689 TARGET="${SYSCTL}/$(get_test_target 0001)"
691 ORIG=$(cat "${TARGET}")
701 TARGET="${SYSCTL}/$(get_test_target 0002)"
703 ORIG=$(cat "${TARGET}")
714 TARGET="${SYSCTL}/$(get_test_target 0003)"
716 ORIG=$(cat "${TARGET}")
727 TARGET="${SYSCTL}/$(get_test_target 0004)"
729 ORIG=$(cat "${TARGET}")
740 TARGET="${SYSCTL}/$(get_test_target 0005)"
742 ORIG=$(cat "${TARGET}")
749 TARGET="${SYSCTL}/bitmap_0001"