Lines Matching full:echo

75                echo "$0: $DIR not present" >&2
76 echo "You must have the following enabled in your kernel:" >&2
114 echo "$0: You need modprobe installed" >&2
119 echo "$0: You need kmod installed" >&2
131 echo "$0: You need at least kmod 20" >&2
132 echo "kmod <= 19 is buggy, for details see:" >&2
133echo "https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/libkmod/libkmod-module.c?id=fd…
139 echo $msg must be run as root >&2
156 echo "$MODPROBE" > /proc/sys/kernel/modprobe
157 echo "Test completed"
167 echo 256;;
169 echo 0;;
171 echo -1;;
173 echo -2;;
175 echo -22;;
177 echo -123456;;
179 echo invalid;;
186 echo MODULE_NOT_FOUND;;
188 echo SUCCESS;;
190 echo -EPERM;;
192 echo -ENOENT;;
194 echo -EINVAL;;
196 echo -ERR_ANY;;
198 echo invalid;;
203 if ! echo -n 1 >$DIR/config_test_case; then
204 echo "$0: Unable to set to test case to driver" >&2
211 if ! echo -n 2 >$DIR/config_test_case; then
212 echo "$0: Unable to set to test case to fs" >&2
219 if ! echo -n $1 >$DIR/config_num_threads; then
220 echo "$0: Unable to set to number of threads" >&2
230 echo $MODPROBE_LIMIT
244 if ! echo -n $1 >$DIR/config_test_driver; then
245 echo "$0: Unable to set driver" >&2
252 if ! echo -n $1 >$DIR/config_test_fs; then
253 echo "$0: Unable to set driver" >&2
270 if ! echo -n "1" >"$DIR"/reset; then
271 echo "$0: reset should have worked" >&2
278 echo "----------------------------------------------------"
280 echo "----------------------------------------------------"
285 if ! echo -n "1" >"$DIR"/trigger_config 2>/dev/null; then
286 echo "$1: FAIL - loading should have worked"
290 echo "$1: OK! - loading kmod test"
295 if echo "1" > $DIR/trigger_config 2>/dev/null; then
296 echo "$1: FAIL - test case was expected to fail"
300 echo "$1: OK! - kmod test case failed as expected"
313 echo "$1: FAIL, test expects $ERRNO_NAME - got $RC_NAME ($RC)" >&2
318 echo "$1: FAIL, test expects $ERRNO_NAME ($ERRNO) - got $RC_NAME ($RC)" >&2
322 echo "$1: OK! - Return value: $RC ($RC_NAME), expected $ERRNO_NAME"
455 echo "/KMOD_TEST_NONEXISTENT" > /proc/sys/kernel/modprobe
458 echo "$MODPROBE" > /proc/sys/kernel/modprobe
469 echo > /proc/sys/kernel/modprobe
472 echo "$MODPROBE" > /proc/sys/kernel/modprobe
488 echo "${FUNCNAME[0]}: FAIL, $name visible to unpriv: '$priv' vs '$unpriv'" >&2
491 echo "${FUNCNAME[0]}: OK!"
509 echo "Test ID list:"
510 echo
511 echo "TEST_ID x NUM_TEST"
512 echo "TEST_ID: Test ID"
513 echo "NUM_TESTS: Number of recommended times to run the test"
514 echo
515 echo "0001 x $(get_test_count 0001) - Simple test - 1 thread for empty string"
516echo "0002 x $(get_test_count 0002) - Simple test - 1 thread for modules/filesystems that do not …
517 echo "0003 x $(get_test_count 0003) - Simple test - 1 thread for get_fs_type() only"
518 echo "0004 x $(get_test_count 0004) - Simple test - 2 threads for get_fs_type() only"
519echo "0005 x $(get_test_count 0005) - multithreaded tests with default setup - request_module() on…
520 echo "0006 x $(get_test_count 0006) - multithreaded tests with default setup - get_fs_type() only"
521echo "0007 x $(get_test_count 0007) - multithreaded tests with default setup test request_module()…
522echo "0008 x $(get_test_count 0008) - multithreaded - push kmod_concurrent over max_modprobes for …
523echo "0009 x $(get_test_count 0009) - multithreaded - push kmod_concurrent over max_modprobes for …
524 echo "0010 x $(get_test_count 0010) - test nonexistent modprobe path"
525 echo "0011 x $(get_test_count 0011) - test completely disabling module autoloading"
526 echo "0012 x $(get_test_count 0012) - test /proc/modules address visibility under CAP_SYSLOG"
527 echo "0013 x $(get_test_count 0013) - test /sys/module/*/sections/* visibility under CAP_SYSLOG"
535 echo "Usage: $0 [ -t <4-number-digit> ] | [ -w <4-number-digit> ] |"
536 echo " [ -s <4-number-digit> ] | [ -c <4-number-digit> <test- count>"
537 echo " [ all ] [ -h | --help ] [ -l ]"
538 echo ""
539 echo "Valid tests: 0001-$MAX_TEST"
540 echo ""
541 echo " all Runs all tests (default)"
542 echo " -t Run test ID the number amount of times is recommended"
543 echo " -w Watch test ID run until it runs into an error"
544 echo " -s Run test ID once"
545 echo " -c Run test ID x test-count number of times"
546 echo " -l List all test ID list"
547 echo " -h|--help Help"
548 echo
549 echo "If an error every occurs execution will immediately terminate."
550 echo "If you are adding a new test try using -w <test-ID> first to"
551 echo "make sure the test passes a series of tests."
552 echo
553 echo Example uses:
554 echo
555 echo "${TEST_NAME}.sh -- executes all tests"
556 echo "${TEST_NAME}.sh -t 0008 -- Executes test ID 0008 number of times is recommended"
557 echo "${TEST_NAME}.sh -w 0008 -- Watch test ID 0008 run until an error occurs"
558 echo "${TEST_NAME}.sh -s 0008 -- Run test ID 0008 once"
559 echo "${TEST_NAME}.sh -c 0008 3 -- Run test ID 0008 three times"
560 echo
576 local field_num=$(echo $1 | sed 's/^0*//')
577 echo $ALL_TESTS | awk '{print $'$field_num'}'
584 echo ${LAST_TWO%:*}
590 echo ${TEST_DATA#*:*:}
611 echo "Running test: $2 - run #$1"