]>
git.proxmox.com Git - rustc.git/blob - src/tools/cargo/tests/testsuite/init/multibin_project_name_clash/mod.rs
1 use cargo_test_support
::compare
::assert_ui
;
2 use cargo_test_support
::prelude
::*;
3 use cargo_test_support
::Project
;
5 use cargo_test_support
::curr_dir
;
9 let project
= Project
::from_template(curr_dir
!().join("in"));
10 let project_root
= &project
.root();
12 snapbox
::cmd
::Command
::cargo_ui()
13 .arg_line("init --lib --vcs none")
14 .current_dir(project_root
)
17 .stdout_matches_path(curr_dir
!().join("stdout.log"))
18 .stderr_matches_path(curr_dir
!().join("stderr.log"));
20 assert_ui().subset_matches(curr_dir
!().join("out"), project_root
);
21 assert
!(!project_root
.join("Cargo.toml").is_file());