Debian Codegraph @

third_party/rust/audio-mixer/run_tests.sh

raw
1 # Bail out once getting an error.
2 set -e
3
4 # Display verbose backtrace for debugging if backtrace is unset
5 if [ -z "${RUST_BACKTRACE}" ]; then
6 export RUST_BACKTRACE=1
7 fi
8 echo -e "RUST_BACKTRACE is set to ${RUST_BACKTRACE}\n"
9
10 # Format check
11 cargo fmt --all -- --check
12
13 # Lints check
14 cargo clippy --all-targets --all-features -- -D warnings
15
16 # Regular Tests
17 cargo test --verbose --all