• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -e
4
5# 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
31