-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_tests
executable file
·42 lines (29 loc) · 1.94 KB
/
run_tests
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
#!/usr/bin/env bash
set -eu
set -o pipefail
# WASM target
echo -e "\033[36;1mRunning WASM debug/force-static tests:\033[0m"
cargo check --target wasm32-unknown-unknown --features force-static && (cd test_dymod && cargo check --target wasm32-unknown-unknown --features force-static)
echo -e "\033[36;1mRunning WASM release/force-static tests:\033[0m"
cargo check --target wasm32-unknown-unknown --release --features force-static && (cd test_dymod && cargo check --target wasm32-unknown-unknown --release --features force-static)
# Default target
echo -e "\033[36;1mRunning debug tests:\033[0m"
cargo test && (cd test_dymod && cargo test)
echo -e "\033[36;1mRunning debug/force-static tests:\033[0m"
cargo test --features force-static && (cd test_dymod && cargo test --features force-static)
echo -e "\033[36;1mRunning debug/force-dynamic tests:\033[0m"
cargo test --features force-dynamic && (cd test_dymod && cargo test --features force-dynamic)
echo -e "\033[36;1mRunning debug/auto-reload tests:\033[0m"
cargo test --features auto-reload && (cd test_dymod && cargo test --features auto-reload)
echo -e "\033[36;1mRunning release tests:\033[0m"
cargo test --release && (cd test_dymod && cargo test --release)
echo -e "\033[36;1mRunning release/force-static tests:\033[0m"
cargo test --release --features force-static && (cd test_dymod && cargo test --release --features force-static)
echo -e "\033[36;1mRunning release/force-dynamic tests:\033[0m"
cargo test --release --features force-dynamic && (cd test_dymod && cargo test --release --features force-dynamic)
echo -e "\033[36;1mRunning release/auto-reload tests:\033[0m"
cargo test --release --features auto-reload && (cd test_dymod && cargo test --release --features auto-reload)
echo -e "\033[36;1mRunning rustfmt:\033[0m"
cargo fmt -- --check && (cd test_dymod && cargo fmt -- --check)
echo -e "\033[36;1mRunning clippy:\033[0m"
cargo clippy -- -D clippy::all && (cd test_dymod && cargo clippy -- -D clippy::all)