-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdo_it_all.sh
executable file
·31 lines (28 loc) · 1.01 KB
/
do_it_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
echo "====================================="
echo "============build from c============="
echo "====================================="
cd build_from_c
./build.sh
cd ..
stat --printf="wasm size: %s\n" build_from_c/out/transition_erased.wasm
mv build_from_c/out/transition_erased.wasm test_cases/transition_c.wasm
echo "====================================="
echo "===========build from rust==========="
echo "====================================="
cd build_from_rust
./build.sh
cd ..
stat --printf="wasm size: %s\n" build_from_rust/target/wasm32-unknown-unknown/release/transition.wasm
mv build_from_rust/target/wasm32-unknown-unknown/release/transition.wasm test_cases/transition_rust.wasm
echo "====================================="
echo "========test call from golang========"
echo "====================================="
cd call_from_golang
go test -v
cd ..
echo "====================================="
echo "======test call from javascript======"
echo "====================================="
cd call_from_javascript
npm test
cd ..