| 1 | #!/usr/bin/env expect |
| 2 | |
| 3 | set timeout 3 |
| 4 | set v_root [exec sh -c "git rev-parse --show-toplevel"] |
| 5 | |
| 6 | spawn $v_root/v run $v_root/examples/password/password.v |
| 7 | |
| 8 | expect "Enter your password : " { send "Sample123\r" } timeout { exit 1 } |
| 9 | expect "Confirm password : " { send "Sample234\r" } timeout { exit 1 } |
| 10 | expect "Passwords do not match ." {} timeout { exit 1 } |
| 11 | |
| 12 | expect eof |
| 13 |