Lines Matching full:echo
20 echo "Usage: $0 [OPTIONS] LOCAL_DEV REMOTE_DEV"
21 echo "Run tests on a pair of NTB endpoints."
22 echo
23 echo "If the NTB device loops back to the same host then,"
24 echo "just specifying the two PCI ids on the command line is"
25 echo "sufficient. Otherwise, if the NTB link spans two hosts"
26 echo "use the -r option to specify the hostname for the remote"
27 echo "device. SSH will then be used to test the remote side."
28 echo "An SSH key between the root users of the host would then"
29 echo "be highly recommended."
30 echo
31 echo "Options:"
32 echo " -C don't cleanup ntb modules on exit"
33 echo " -h show this help message"
34 echo " -l list available local and remote PCI ids"
35 echo " -r REMOTE_HOST specify the remote's hostname to connect"
36 echo " to for the test (using ssh)"
37 echo " -m MW_SIZE memory window size for ntb_tool"
38 echo " (default: $MW_SIZE)"
39 echo " -d run dma tests for ntb_perf"
40 echo " -p ORDER total data order for ntb_perf"
41 echo " (default: $PERF_RUN_ORDER)"
42 echo " -w MAX_MW_SIZE maxmium memory window size for ntb_perf"
43 echo
60 echo "Invalid option: -$OPTARG" >&2
115 ssh "$REMOTE" "echo \"$VALUE\" > \"$VPATH\""
117 echo "$VALUE" > "$VPATH"
134 echo $(basename $(dirname $1)) 2> /dev/null
149 echo $i
162 echo "Running port tests on: $(basename $LOC) / $(basename $REM)"
170 echo "Local port ${LOCAL_PORT} with index ${REMOTE_PIDX} on remote host"
171 echo "Peer port ${REMOTE_PORT} with index ${LOCAL_PIDX} on local host"
173 echo " Passed"
182 echo "Running link tests on: $(subdirname $LOC) / $(subdirname $REM)"
185 echo " Unsupported"
192 echo "Expected link to be down in $REM/link" >&2
198 echo " Passed"
207 echo "Running db tests on: $(basename $LOC) / $(basename $REM)"
216 echo "Doorbell doesn't match expected value $EXP " \
233 echo " Passed"
244 echo $(ls -1 "$VPATH"/${NAME}* 2>/dev/null | wc -l)
246 echo $(ssh "$REMOTE" "ls -1 \"$VPATH\"/${NAME}* | \
256 echo "Running spad tests on: $(subdirname $LOC) / $(subdirname $REM)"
261 echo " Unsupported"
271 echo "Scratchpad $i value $RVAL doesn't match $VAL" >&2
276 echo " Passed"
284 echo "Running msg tests on: $(subdirname $LOC) / $(subdirname $REM)"
289 echo " Unsupported"
305 echo "Message $i value $RVAL doesn't match $VAL" >&2
310 echo " Passed"
329 MW_ALIGNED_SIZE=$(echo "$INB_MW" | get_number "Window Size")
330 MW_DMA_ADDR=$(echo "$INB_MW" | get_number "DMA Address")
335 echo "MW $IDX size aligned to $MW_ALIGNED_SIZE"
377 echo "Memory window $MW did not match!" >&2
408 echo "Running mw$i tests on: $(subdirname $LOC) / " \
417 echo " Passed"
427 echo "Running ping pong tests on: $(basename $LOC) / $(basename $REM)"
438 echo "Ping pong counter not incrementing!" >&2
442 echo " Passed"
452 echo "Running MSI interrupt tests on: $(subdirname $LOC) / $(subdirname $REM)"
461 echo "MSI did not trigger the interrupt on the remote side!" >&2
466 echo " Passed"
482 echo "Running local perf test $WITH DMA"
484 echo -n " "
486 echo " Passed"
488 echo "Running remote perf test $WITH DMA"
490 echo -n " "
492 echo " Passed"
502 echo "Starting ntb_tool tests..."
538 echo "Starting ntb_pingpong tests..."
552 echo "Starting ntb_msi_test tests..."
555 echo " Not doing MSI tests seeing the module is not available."
575 echo "Starting ntb_perf tests..."
602 echo "This script must be run as root" 1>&2
607 echo "Local Devices:"
609 echo
612 echo "Remote Devices:"
625 echo
627 echo
629 echo
631 echo