set -e
cd "$(dirname "$0")"
echo "===== DEFAULT FEATURES ====="
cargo test
cargo test --no-default-features --lib
echo "===== DOC TESTS ====="
cargo test --doc
features=(
"std"
"std unicode"
"std unicode-perl"
"std perf"
"std perf-cache"
"std perf-dfa"
"std perf-inline"
"std perf-literal"
"std perf-dfa-full"
"std perf-onepass"
"std perf-backtrack"
)
for f in "${features[@]}"; do
echo "===== FEATURE: $f ====="
cargo test --test integration --no-default-features --features "$f"
done
if rustc --version | grep -q nightly; then
echo "===== FEATURE: std,pattern,unicode-perl ====="
cargo test --test integration --no-default-features --features std,pattern,unicode-perl
fi