Skip to content

Commit

Permalink
Merge pull request #160 from oli-obk/master
Browse files Browse the repository at this point in the history
Also test subdirectories of `rust/src/test/run-pass`
  • Loading branch information
eddyb authored Apr 25, 2017
2 parents 7676847 + df9440d commit c0d2d01
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,17 @@ fn compile_test() {
let mut unsupported = Vec::new();
let mut unimplemented_intrinsic = Vec::new();
let mut limits = Vec::new();
for file in std::fs::read_dir(path).unwrap() {
let mut files: Vec<_> = std::fs::read_dir(path).unwrap().collect();
while let Some(file) = files.pop() {
let file = file.unwrap();
let path = file.path();
if file.metadata().unwrap().is_dir() {
if !path.to_str().unwrap().ends_with("auxiliary") {
// add subdirs recursively
files.extend(std::fs::read_dir(path).unwrap());
}
continue;
}
if !file.metadata().unwrap().is_file() || !path.to_str().unwrap().ends_with(".rs") {
continue;
}
Expand Down

0 comments on commit c0d2d01

Please sign in to comment.