| 1 | #!/usr/bin/env expect |
| 2 | |
| 3 | set timeout 10 |
| 4 | |
| 5 | # Pass v_root as arg, since we chdir into a temp directory during testing and create a project there. |
| 6 | set v_root [lindex $argv 0] |
| 7 | |
| 8 | spawn $v_root/v init |
| 9 | |
| 10 | expect "Input your project description: " { send "\r" } timeout { exit 1 } |
| 11 | expect "Input your project version: (0.0.0) " { send "\r" } timeout { exit 1 } |
| 12 | expect "Input your project license: (MIT) " { send "\r" } timeout { exit 1 } |
| 13 | # The completion message is verified in `vcreate_init_test.v`. |
| 14 | |
| 15 | expect eof |
| 16 | |