Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env expect
|
||||
|
||||
set timeout 3
|
||||
set v_root [exec sh -c "git rev-parse --show-toplevel"]
|
||||
|
||||
spawn $v_root/v run $v_root/examples/readline/readline.v
|
||||
|
||||
send "a"
|
||||
expect "got 97" {} timeout { exit 1 }
|
||||
send "1"
|
||||
expect "got 49" {} timeout { exit 1 }
|
||||
send "q"
|
||||
expect "Goodbye." {} timeout { exit 1 }
|
||||
|
||||
expect eof
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user