1#!/bin/bash
2
3# This is a convenience script for running a broad swath of tests across
4# features. We don't test the complete space, since the complete space is quite
5# large. Hopefully once we migrate the test suite to better infrastructure
6# (like regex-automata), we'll be able to test more of the space.
7echo "===== DEFAULT FEATURES ==="
8cargo test
9
10echo "===== DOC TESTS ==="
11cargo test --doc
12
13features=(
14    "std"
15    "std unicode"
16    "std unicode-perl"
17    "std perf"
18    "std perf-cache"
19    "std perf-dfa"
20    "std perf-inline"
21    "std perf-literal"
22)
23for f in "${features[@]}"; do
24    echo "===== FEATURE: $f (default) ==="
25    cargo test --test default --no-default-features --features "$f"
26    echo "===== FEATURE: $f (default-bytes) ==="
27    cargo test --test default-bytes --no-default-features --features "$f"
28done
29