mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 10:28:35 +00:00
feat(build): archive feature, progress UI, and workspace path fixes
This commit is contained in:
@@ -45,6 +45,16 @@ fn workspace_build_and_clean_all() {
|
||||
out.status.success(),
|
||||
"workspace clean --all --release should succeed"
|
||||
);
|
||||
let combined = format!(
|
||||
"{}{}",
|
||||
String::from_utf8_lossy(&out.stdout),
|
||||
String::from_utf8_lossy(&out.stderr)
|
||||
);
|
||||
let spam = combined.matches("Directory target not found").count();
|
||||
assert!(
|
||||
spam <= 1,
|
||||
"clean --all should not spam missing member target/: {combined}"
|
||||
);
|
||||
|
||||
let target_dir = "target/x86_64-unknown-linux-gnu";
|
||||
assert!(
|
||||
@@ -55,4 +65,8 @@ fn workspace_build_and_clean_all() {
|
||||
root.join(target_dir).join("debug").exists(),
|
||||
"root target/x86_64-unknown-linux-gnu/debug should remain"
|
||||
);
|
||||
|
||||
let out = run_dcr_env(&["clean", "--all"], &root, &envs);
|
||||
assert!(out.status.success(), "workspace clean --all should succeed");
|
||||
assert!(!root.join("target").exists(), "root target/ should be gone");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user