]> git.proxmox.com Git - rustc.git/blob - src/tools/cargo/tests/testsuite/init/bin_already_exists_explicit/mod.rs
New upstream version 1.70.0+dfsg2
[rustc.git] / src / tools / cargo / tests / testsuite / init / bin_already_exists_explicit / mod.rs
1 use cargo_test_support::compare::assert_ui;
2 use cargo_test_support::prelude::*;
3 use cargo_test_support::Project;
4
5 use cargo_test_support::curr_dir;
6
7 #[cargo_test]
8 fn case() {
9 let project = Project::from_template(curr_dir!().join("in"));
10 let project_root = &project.root();
11
12 snapbox::cmd::Command::cargo_ui()
13 .arg_line("init --bin --vcs none")
14 .current_dir(project_root)
15 .assert()
16 .success()
17 .stdout_matches_path(curr_dir!().join("stdout.log"))
18 .stderr_matches_path(curr_dir!().join("stderr.log"));
19
20 assert_ui().subset_matches(curr_dir!().join("out"), project_root);
21 }