test: exercise packaged cargo new through the world builder

This commit is contained in:
2026-11-11 22:51:01 +00:00
parent 5007b18374
commit 8581ded6a8
+2 -3
View File
@@ -9,10 +9,9 @@ def main [host: path = 'result/bin/sausage'] {
print --no-newline $initialized.stdout
print --stderr --no-newline $initialized.stderr
if $initialized.exit_code != 0 { error make {msg: 'packaged host init failed'} }
# Cargo new is not available until T86. This dependency-free crate tests the same builder.
let script = r#'set -e
mkdir -p /src/packaged-probe/src
printf '[package]\nname = "packaged-probe"\nversion = "0.1.0"\nedition = "2024"\n' > /src/packaged-probe/Cargo.toml
cd /src
cargo new packaged-probe --vcs none
printf 'fn main() { println!("packaged builder OK"); }\n' > /src/packaged-probe/src/main.rs
cd /src/packaged-probe
cargo build --release