about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-03-26 14:06:09 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-03-26 14:07:51 +0000
commitc0f2b10e15255059d6b3fb2171d894e471e9baee (patch)
tree3f3f9d7ed802ed1eb6d9698192ee544c4da6bc4c
parent5b1268d16b4e6729d25af5a6bc003f217e6f59d1 (diff)
downloadrust-c0f2b10e15255059d6b3fb2171d894e471e9baee.tar.gz
rust-c0f2b10e15255059d6b3fb2171d894e471e9baee.zip
Skip building crates without tests for regex
regex-capi and regex-debug don't have any tests. Nor do they contain any
code that is useful to test with cg_clif.
-rw-r--r--build_system/tests.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/build_system/tests.rs b/build_system/tests.rs
index 6f2897f66ac..e2a6fa91eb3 100644
--- a/build_system/tests.rs
+++ b/build_system/tests.rs
@@ -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");