Throwaway prototypes for Sausage v3. Plan and decisions: ~/research/sausage-v3/PLAN.md. Results and evidence: the spike READMEs.
11 lines
653 B
Nu
11 lines
653 B
Nu
#!/usr/bin/env nu
|
|
# Verify the guest, rule dimensions, and all end-to-end HTTP cases.
|
|
def main [] {
|
|
^nix develop -c cargo build --manifest-path spikes/s5-http/guest/Cargo.toml --target wasm32-wasip2 -j 2
|
|
if $env.LAST_EXIT_CODE != 0 { error make {msg: "guest build failed"} }
|
|
^nix develop -c cargo test --manifest-path spikes/s5-http/Cargo.toml -j 2
|
|
if $env.LAST_EXIT_CODE != 0 { error make {msg: "rule tests failed"} }
|
|
^nix develop -c cargo run --manifest-path spikes/s5-http/Cargo.toml -j 2 -- spikes/s5-http/guest/target/wasm32-wasip2/debug/s5-curl.wasm
|
|
if $env.LAST_EXIT_CODE != 0 { error make {msg: "guest cases failed"} }
|
|
}
|