mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
14 lines
313 B
Text
Executable file
14 lines
313 B
Text
Executable file
#!/usr/bin/env expect
|
|
|
|
set timeout 3
|
|
set v_root [exec sh -c "git rev-parse --show-toplevel"]
|
|
# Use input arguments for send and expect.
|
|
set send_ [lindex $argv 0]
|
|
set expect_ [lindex $argv 1]
|
|
|
|
spawn $v_root/v run $v_root/examples/readline/readline.v
|
|
|
|
send $send_
|
|
expect $expect_ {} timeout { exit 1 }
|
|
|
|
expect eof
|