8 WVPASS ./script -t '' --exiton=Hello --remote-cmd="echo Hello; cat"
12 WVPASS ./script -t '' --expect=question --send="answer\n" \
13 --remote-cmd='echo question; read x; echo $x > output'
14 WVPASS grep answer output
18 WVPASS ./script -t '' --expect=question --send="answer\n" \
19 --remote-cmd='echo question; read x; echo $x > output'
20 WVPASS grep answer output
22 WVSTART Expect regexp send
24 WVPASS ./script -t '' --expect-re=q..st..n --send="answer\n" \
25 --remote-cmd='echo question; read x; echo $x > output'
26 WVPASS grep answer output
28 WVSTART Expect sendcont
30 WVPASS ./script -t '' --expect=More --sendcont="\n" \
31 --remote-cmd='seq 100|more --exit-on-eof'
33 WVSTART Expect vs exiton priority
35 WVPASS ./script -t '' --expect="#" --sendcont="exit\n#" --exiton="exit" \
36 --remote-cmd='echo -n "#"; cat' | tee output
37 WVPASS test "$(grep exit output | wc -l )" -eq 1