forked from radixdlt/radixdlt-scrypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·49 lines (40 loc) · 910 Bytes
/
test.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#set -x
set -e
cd "$(dirname "$0")"
source test_utils.sh
setup_test_runner
echo "Testing crates..."
test_crates_features \
"sbor \
sbor-derive-common \
sbor-derive \
sbor-tests \
scrypto \
scrypto-derive \
scrypto-derive-tests \
radix-engine-derive \
radix-engine-common \
radix-engine-interface \
radix-engine \
radix-engine-tests \
transaction-scenarios \
transaction" \
--features=compile-blueprints-at-build-time
echo "Testing scrypto packages..."
test_packages \
"assets/blueprints/faucet \
examples/hello-world \
examples/no-std"
echo "Testing CLIs..."
(cd simulator; cargo test)
test_cli \
"./tests/resim.sh \
./tests/scrypto.sh \
./tests/manifest.sh"
echo "Running benchmark..."
test_benchmark \
"sbor-tests \
radix-engine-tests"
./check_stack_usage.sh
echo "Congrats! All tests passed."