|
251 | 251 | @test length(state.dependencies) == 2
|
252 | 252 | @test any([BinaryBuilder.getname(d) == "ghr_jll" for d in state.dependencies])
|
253 | 253 | @test any([BinaryBuilder.getname(d) == "Zlib_jll" for d in state.dependencies])
|
| 254 | + |
| 255 | + # Test for escaping the URL prompt with N |
| 256 | + state = step2_state() |
| 257 | + with_wizard_output(state, Wizard.step2) do ins, outs |
| 258 | + call_response(ins, outs, "Please enter a URL", "http://127.0.0.1:$(port)/a/source.tar.gz") |
| 259 | + call_response(ins, outs, "Would you like to download additional sources", "Y") |
| 260 | + call_response(ins, outs, "Please enter a URL", "N") |
| 261 | + call_response(ins, outs, "Would you like to download additional sources", "N") |
| 262 | + call_response(ins, outs, "Do you require any (binary) dependencies", "N") |
| 263 | + call_response(ins, outs, "Enter a name for this project", "get_me_out") |
| 264 | + call_response(ins, outs, "Enter a version number", "1.0.0") |
| 265 | + call_response(ins, outs, "Do you want to customize the set of compilers?", "N") |
| 266 | + end |
| 267 | + @test state.source_urls == ["http://127.0.0.1:$(port)/a/source.tar.gz"] |
| 268 | + state = step2_state() |
| 269 | + with_wizard_output(state, Wizard.step2) do ins, outs |
| 270 | + call_response(ins, outs, "Please enter a URL", "N") |
| 271 | + call_response(ins, outs, "No URLs", "http://127.0.0.1:$(port)/a/source.tar.gz") |
| 272 | + call_response(ins, outs, "Would you like to download additional sources", "N") |
| 273 | + call_response(ins, outs, "Do you require any (binary) dependencies", "N") |
| 274 | + call_response(ins, outs, "Enter a name for this project", "no_urls") |
| 275 | + call_response(ins, outs, "Enter a version number", "1.0.0") |
| 276 | + call_response(ins, outs, "Do you want to customize the set of compilers?", "N") |
| 277 | + end |
254 | 278 | end
|
255 | 279 |
|
256 | 280 |
|
|
0 commit comments