Skip to content

Commit

Permalink
Add make wasm-tests Makefile target
Browse files Browse the repository at this point in the history
For the moment this just documents how to build and run WASM tests locally.

See #93 for supporting this in CI.
  • Loading branch information
robertknight committed Apr 14, 2024
1 parent 89a0814 commit f71a1b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ wasm-nosimd:
.PHONY: wasm-all
wasm-all: wasm wasm-nosimd

.PHONY: wasm-tests
wasm-tests:
cargo build --tests -p rten
wasmtime --dir . target/wasm32-wasi/debug/deps/rten-*.wasm

src/schema_generated.rs: src/schema.fbs
flatc -o src/ --rust src/schema.fbs
cargo fmt
Expand Down

0 comments on commit f71a1b1

Please sign in to comment.