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