Files
ureq/test.sh
2022-11-26 11:46:00 +01:00

13 lines
385 B
Bash
Executable File

#!/bin/bash
set -eu
export RUST_BACKTRACE=1
export RUSTFLAGS="-D dead_code -D unused-variables -D unused"
for feature in "" tls json charset cookies socks-proxy "tls native-certs" native-tls gzip brotli; do
if ! cargo test --no-default-features --features "${feature}" ; then
echo Command failed: cargo test --no-default-features --features \"${feature}\"
exit 1
fi
done