Lines Matching full:echo
64 echo "$0: $DIR not present" >&2
65 echo "You must have the following enabled in your kernel:" >&2
103 echo "$0: You need modprobe installed" >&2
108 echo "$0: You need kmod installed" >&2
120 echo "$0: You need at least kmod 20" >&2
121 echo "kmod <= 19 is buggy, for details see:" >&2
122 …echo "https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/libkmod/libkmod-module.c?id=fd…
128 echo $msg must be run as root >&2
145 echo "$MODPROBE" > /proc/sys/kernel/modprobe
146 echo "Test completed"
156 echo 256;;
158 echo 0;;
160 echo -1;;
162 echo -2;;
164 echo -22;;
166 echo -123456;;
168 echo invalid;;
175 echo MODULE_NOT_FOUND;;
177 echo SUCCESS;;
179 echo -EPERM;;
181 echo -ENOENT;;
183 echo -EINVAL;;
185 echo -ERR_ANY;;
187 echo invalid;;
192 if ! echo -n 1 >$DIR/config_test_case; then
193 echo "$0: Unable to set to test case to driver" >&2
200 if ! echo -n 2 >$DIR/config_test_case; then
201 echo "$0: Unable to set to test case to fs" >&2
208 if ! echo -n $1 >$DIR/config_num_threads; then
209 echo "$0: Unable to set to number of threads" >&2
219 echo $MODPROBE_LIMIT
233 if ! echo -n $1 >$DIR/config_test_driver; then
234 echo "$0: Unable to set driver" >&2
241 if ! echo -n $1 >$DIR/config_test_fs; then
242 echo "$0: Unable to set driver" >&2
259 if ! echo -n "1" >"$DIR"/reset; then
260 echo "$0: reset should have worked" >&2
267 echo "----------------------------------------------------"
269 echo "----------------------------------------------------"
274 if ! echo -n "1" >"$DIR"/trigger_config 2>/dev/null; then
275 echo "$1: FAIL - loading should have worked"
279 echo "$1: OK! - loading kmod test"
284 if echo "1" > $DIR/trigger_config 2>/dev/null; then
285 echo "$1: FAIL - test case was expected to fail"
289 echo "$1: OK! - kmod test case failed as expected"
302 echo "$1: FAIL, test expects $ERRNO_NAME - got $RC_NAME ($RC)" >&2
307 echo "$1: FAIL, test expects $ERRNO_NAME ($ERRNO) - got $RC_NAME ($RC)" >&2
311 echo "$1: OK! - Return value: $RC ($RC_NAME), expected $ERRNO_NAME"
444 echo "/KMOD_TEST_NONEXISTENT" > /proc/sys/kernel/modprobe
447 echo "$MODPROBE" > /proc/sys/kernel/modprobe
458 echo > /proc/sys/kernel/modprobe
461 echo "$MODPROBE" > /proc/sys/kernel/modprobe
477 echo "${FUNCNAME[0]}: FAIL, $name visible to unpriv: '$priv' vs '$unpriv'" >&2
480 echo "${FUNCNAME[0]}: OK!"
498 echo "Test ID list:"
499 echo
500 echo "TEST_ID x NUM_TEST"
501 echo "TEST_ID: Test ID"
502 echo "NUM_TESTS: Number of recommended times to run the test"
503 echo
504 echo "0001 x $(get_test_count 0001) - Simple test - 1 thread for empty string"
505 …echo "0002 x $(get_test_count 0002) - Simple test - 1 thread for modules/filesystems that do not …
506 echo "0003 x $(get_test_count 0003) - Simple test - 1 thread for get_fs_type() only"
507 echo "0004 x $(get_test_count 0004) - Simple test - 2 threads for get_fs_type() only"
508 …echo "0005 x $(get_test_count 0005) - multithreaded tests with default setup - request_module() on…
509 echo "0006 x $(get_test_count 0006) - multithreaded tests with default setup - get_fs_type() only"
510 …echo "0007 x $(get_test_count 0007) - multithreaded tests with default setup test request_module()…
511 …echo "0008 x $(get_test_count 0008) - multithreaded - push kmod_concurrent over max_modprobes for …
512 …echo "0009 x $(get_test_count 0009) - multithreaded - push kmod_concurrent over max_modprobes for …
513 echo "0010 x $(get_test_count 0010) - test nonexistent modprobe path"
514 echo "0011 x $(get_test_count 0011) - test completely disabling module autoloading"
515 echo "0012 x $(get_test_count 0012) - test /proc/modules address visibility under CAP_SYSLOG"
516 echo "0013 x $(get_test_count 0013) - test /sys/module/*/sections/* visibility under CAP_SYSLOG"
524 echo "Usage: $0 [ -t <4-number-digit> ] | [ -w <4-number-digit> ] |"
525 echo " [ -s <4-number-digit> ] | [ -c <4-number-digit> <test- count>"
526 echo " [ all ] [ -h | --help ] [ -l ]"
527 echo ""
528 echo "Valid tests: 0001-$MAX_TEST"
529 echo ""
530 echo " all Runs all tests (default)"
531 echo " -t Run test ID the number amount of times is recommended"
532 echo " -w Watch test ID run until it runs into an error"
533 echo " -s Run test ID once"
534 echo " -c Run test ID x test-count number of times"
535 echo " -l List all test ID list"
536 echo " -h|--help Help"
537 echo
538 echo "If an error every occurs execution will immediately terminate."
539 echo "If you are adding a new test try using -w <test-ID> first to"
540 echo "make sure the test passes a series of tests."
541 echo
542 echo Example uses:
543 echo
544 echo "${TEST_NAME}.sh -- executes all tests"
545 echo "${TEST_NAME}.sh -t 0008 -- Executes test ID 0008 number of times is recommended"
546 echo "${TEST_NAME}.sh -w 0008 -- Watch test ID 0008 run until an error occurs"
547 echo "${TEST_NAME}.sh -s 0008 -- Run test ID 0008 once"
548 echo "${TEST_NAME}.sh -c 0008 3 -- Run test ID 0008 three times"
549 echo
565 local field_num=$(echo $1 | sed 's/^0*//')
566 echo $ALL_TESTS | awk '{print $'$field_num'}'
573 echo ${LAST_TWO%:*}
579 echo ${TEST_DATA#*:*:}
600 echo "Running test: $2 - run #$1"