@@ -9,7 +9,7 @@ use crate::path::{Dirs, RelPath};
9
9
use crate :: prepare:: { apply_patches, GitRepo } ;
10
10
use crate :: rustc_info:: get_default_sysroot;
11
11
use crate :: shared_utils:: rustflags_from_env;
12
- use crate :: utils:: { spawn_and_wait, spawn_and_wait_with_input , CargoProject , Compiler , LogGroup } ;
12
+ use crate :: utils:: { spawn_and_wait, CargoProject , Compiler , LogGroup } ;
13
13
use crate :: { CodegenBackend , SysrootKind } ;
14
14
15
15
static BUILD_EXAMPLE_OUT_DIR : RelPath = RelPath :: BUILD . join ( "example" ) ;
@@ -114,8 +114,8 @@ pub(crate) static RAND: CargoProject = CargoProject::new(&RAND_REPO.source_dir()
114
114
pub ( crate ) static REGEX_REPO : GitRepo = GitRepo :: github (
115
115
"rust-lang" ,
116
116
"regex" ,
117
- "32fed9429eafba0ae92a64b01796a0c5a75b88c8 " ,
118
- "fcc4df7c5b902633 " ,
117
+ "061ee815ef2c44101dba7b0b124600fcb03c1912 " ,
118
+ "dc26aefbeeac03ca " ,
119
119
"regex" ,
120
120
) ;
121
121
@@ -178,40 +178,6 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
178
178
spawn_and_wait ( build_cmd) ;
179
179
}
180
180
} ) ,
181
- TestCase :: custom ( "test.regex-shootout-regex-dna" , & |runner| {
182
- REGEX_REPO . patch ( & runner. dirs ) ;
183
-
184
- REGEX . clean ( & runner. dirs ) ;
185
-
186
- let mut build_cmd = REGEX . build ( & runner. target_compiler , & runner. dirs ) ;
187
- build_cmd. arg ( "--example" ) . arg ( "shootout-regex-dna" ) ;
188
- spawn_and_wait ( build_cmd) ;
189
-
190
- if runner. is_native {
191
- let mut run_cmd = REGEX . run ( & runner. target_compiler , & runner. dirs ) ;
192
- run_cmd. arg ( "--example" ) . arg ( "shootout-regex-dna" ) ;
193
-
194
- let input = fs:: read_to_string (
195
- REGEX . source_dir ( & runner. dirs ) . join ( "examples" ) . join ( "regexdna-input.txt" ) ,
196
- )
197
- . unwrap ( ) ;
198
- let expected = fs:: read_to_string (
199
- REGEX . source_dir ( & runner. dirs ) . join ( "examples" ) . join ( "regexdna-output.txt" ) ,
200
- )
201
- . unwrap ( ) ;
202
-
203
- let output = spawn_and_wait_with_input ( run_cmd, input) ;
204
-
205
- let output_matches = expected. lines ( ) . eq ( output. lines ( ) ) ;
206
- if !output_matches {
207
- println ! ( "Output files don't match!" ) ;
208
- println ! ( "Expected Output:\n {}" , expected) ;
209
- println ! ( "Actual Output:\n {}" , output) ;
210
-
211
- std:: process:: exit ( 1 ) ;
212
- }
213
- }
214
- } ) ,
215
181
TestCase :: custom ( "test.regex" , & |runner| {
216
182
REGEX_REPO . patch ( & runner. dirs ) ;
217
183
@@ -221,7 +187,22 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
221
187
let mut run_cmd = REGEX . test ( & runner. target_compiler , & runner. dirs ) ;
222
188
// regex-capi and regex-debug don't have any tests. Nor do they contain any code
223
189
// that is useful to test with cg_clif. Skip building them to reduce test time.
224
- run_cmd. args ( [ "-p" , "regex" , "-p" , "regex-syntax" , "--" , "-q" ] ) ;
190
+ run_cmd. args ( [
191
+ "-p" ,
192
+ "regex" ,
193
+ "-p" ,
194
+ "regex-syntax" ,
195
+ "--release" ,
196
+ "--all-targets" ,
197
+ "--" ,
198
+ "-q" ,
199
+ ] ) ;
200
+ spawn_and_wait ( run_cmd) ;
201
+
202
+ let mut run_cmd = REGEX . test ( & runner. target_compiler , & runner. dirs ) ;
203
+ // don't run integration tests for regex-autonata. they take like 2min each without
204
+ // much extra coverage of simd usage.
205
+ run_cmd. args ( [ "-p" , "regex-automata" , "--release" , "--lib" , "--" , "-q" ] ) ;
225
206
spawn_and_wait ( run_cmd) ;
226
207
} else {
227
208
eprintln ! ( "Cross-Compiling: Not running tests" ) ;
0 commit comments