test: scaffold the packaged probe in its own directory
This commit is contained in:
@@ -10,10 +10,11 @@ def main [host: path = 'result/bin/sausage'] {
|
||||
print --stderr --no-newline $initialized.stderr
|
||||
if $initialized.exit_code != 0 { error make {msg: 'packaged host init failed'} }
|
||||
let script = r#'set -e
|
||||
cd /src
|
||||
mkdir -p /src/projects
|
||||
cd /src/projects
|
||||
cargo new packaged-probe --vcs none
|
||||
printf 'fn main() { println!("packaged builder OK"); }\n' > /src/packaged-probe/src/main.rs
|
||||
cd /src/packaged-probe
|
||||
printf 'fn main() { println!("packaged builder OK"); }\n' > packaged-probe/src/main.rs
|
||||
cd packaged-probe
|
||||
cargo build --release
|
||||
./target/wasm32-wasip2/release/packaged-probe.wasm
|
||||
'#
|
||||
|
||||
Reference in New Issue
Block a user