Skip to content

Commit

Permalink
feat: add test for try-sha1
Browse files Browse the repository at this point in the history
  • Loading branch information
loloicci committed May 29, 2024
1 parent ae79bdd commit ffb7b06
Show file tree
Hide file tree
Showing 16 changed files with 1,065 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
members = ["packages/*"]
exclude = ["contracts"]
exclude = ["contracts", "packages/vm/tests/try-sha1"]

# Resolver has to be set explicitely in workspaces
# due to https://github.com/rust-lang/cargo/issues/9956
Expand Down
6 changes: 6 additions & 0 deletions packages/vm/tests/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
4 changes: 4 additions & 0 deletions packages/vm/tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# integration test for vm
## try-sha1
test that the sha1-calculate API is no longer supported.
`try-sha1.wasm` is needed and which is compiled wasm of `try-sha1`.
Binary file added packages/vm/tests/try-sha1.wasm
Binary file not shown.
6 changes: 6 additions & 0 deletions packages/vm/tests/try-sha1/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
Loading

0 comments on commit ffb7b06

Please sign in to comment.