Skip to content

Commit

Permalink
Skip building crates without tests for regex
Browse files Browse the repository at this point in the history
regex-capi and regex-debug don't have any tests. Nor do they contain any
code that is useful to test with cg_clif.
  • Loading branch information
bjorn3 committed Mar 26, 2023
1 parent 5b1268d commit c0f2b10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build_system/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[

if runner.is_native {
let mut run_cmd = REGEX.test(&runner.target_compiler, &runner.dirs);
run_cmd.args(["--workspace", "--", "-q"]);
// regex-capi and regex-debug don't have any tests. Nor do they contain any code
// that is useful to test with cg_clif. Skip building them to reduce test time.
run_cmd.args(["-p", "regex", "-p", "regex-syntax", "--", "-q"]);
spawn_and_wait(run_cmd);
} else {
eprintln!("Cross-Compiling: Not running tests");
Expand Down

0 comments on commit c0f2b10

Please # to comment.