mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
12 lines
361 B
Text
Executable file
12 lines
361 B
Text
Executable file
#!/usr/bin/expect
|
|
|
|
set timeout 3
|
|
set v_root [exec sh -c "git rev-parse --show-toplevel"]
|
|
|
|
spawn $v_root/v run $v_root/examples/password/password.v
|
|
|
|
expect "Enter your password : " { send "Sample123\r" } timeout { exit 1 }
|
|
expect "Confirm password : " { send "Sample234\r" } timeout { exit 1 }
|
|
expect "Passwords do not match ." {} timeout { exit 1 }
|
|
|
|
expect eof
|