-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55a2495
commit f8aa677
Showing
12 changed files
with
66 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
reset | ||
echo " | ||
====== WARNING =============================================================== | ||
This script performs an operation to DELETE ALL the contents of | ||
the folder specified in the environment variable CHIPMUNK_PROTOCOL_TEST_OUTPUT. | ||
Before proceeding, make sure that the CHIPMUNK_PROTOCOL_TEST_OUTPUT variable | ||
contains the correct path. If the CHIPMUNK_PROTOCOL_TEST_OUTPUT variable is | ||
not defined, test data will be written to /\$TMP/stypes_tests. | ||
====== WARNING =============================================================== | ||
" | ||
read -p "Do you want to continue? (y/N): " response | ||
|
||
response=${response,,} | ||
if [[ "$response" != "y" ]]; then | ||
echo "Operation aborted." | ||
exit 1 | ||
fi | ||
|
||
echo "Build wasm module" | ||
cargo clean | ||
wasm-pack build --target nodejs | ||
|
||
echo "Create test use-cases" | ||
cd ../indexer/stypes | ||
export CHIPMUNK_PROTOCOL_TEST_OUTPUT="/tmp/stypes_test/" | ||
cargo test --release -- --nocapture | ||
|
||
echo "Run tests" | ||
export JASMIN_TEST_BLOCKS_LOGS=on | ||
cd ../../rustcore/ts-bindings | ||
rm -rf ./node_modules | ||
rm -rf ./spec/build | ||
rake bindings:test:protocol | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters