forked from rustwasm/wee_alloc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·29 lines (22 loc) · 877 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
#!/usr/bin/env bash
set -eux
cd $(dirname $0)
# Generate new README.md and exit if it differs from the current one.
OLD_README=`mktemp`
cp README.md $OLD_README
cargo readme -r wee_alloc -t "$(pwd)/README.tpl" > README.md
diff $OLD_README README.md
cd ./wee_alloc
time cargo test
cd -
cd ./test
time cargo test --release --features "extra_assertions size_classes"
time cargo test --release --features "extra_assertions"
time cargo test --release --features "size_classes"
time cargo test --release
export WEE_ALLOC_STATIC_ARRAY_BACKEND_BYTES=$((512 * 1024 * 1024))
time cargo test --release --features "static_array_backend extra_assertions size_classes"
time cargo test --release --features "static_array_backend extra_assertions"
time cargo test --release --features "static_array_backend size_classes"
time cargo test --release --features "static_array_backend"
cd -