test: exercise packaged cargo new through the world builder
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user