Chih-Hung Hsieh | e42c505 | 2020-04-16 10:44:21 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Joel Galenson | 3874808 | 2021-05-19 16:51:51 -0700 | [diff] [blame] | 3 | set -e |
| 4 | |
Chih-Hung Hsieh | e42c505 | 2020-04-16 10:44:21 -0700 | [diff] [blame] | 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. |
| 9 | echo "===== DEFAULT FEATURES ===" |
| 10 | cargo test |
| 11 | |
| 12 | echo "===== DOC TESTS ===" |
| 13 | cargo test --doc |
| 14 | |
| 15 | features=( |
| 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 | ) |
| 25 | for 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" |
| 30 | done |