| 1 | #!/usr/bin/env expect |
| 2 | |
| 3 | set timeout 3 |
| 4 | set v_root [exec sh -c "git rev-parse --show-toplevel"] |
| 5 | # Send expected output as arg to re-use the script for testing incorrect values. |
| 6 | set expect_ [lindex $argv 0] |
| 7 | |
| 8 | spawn $v_root/v run $v_root/examples/password/password.v |
| 9 | |
| 10 | expect $expect_ {} timeout { exit 1 } |
| 11 | |
| 12 | expect eof |
| 13 |