Auto merge of #91037 - c410-f3r:testsssssss, r=petrochenkov

Move some tests to more reasonable directories - 10

cc #73494
r? `@petrochenkov`
This commit is contained in:
bors 2021-11-25 23:53:02 +00:00
commit e2f6fb9996
29 changed files with 1 additions and 5 deletions

View File

@ -7,9 +7,8 @@ use std::path::Path;
const ENTRY_LIMIT: usize = 1000;
// FIXME: The following limits should be reduced eventually.
const ROOT_ENTRY_LIMIT: usize = 983;
const ROOT_ENTRY_LIMIT: usize = 982;
const ISSUES_ENTRY_LIMIT: usize = 2310;
const PARSER_LIMIT: usize = 1012;
fn check_entries(path: &Path, bad: &mut bool) {
let dirs = walkdir::WalkDir::new(&path.join("test/ui"))
@ -22,13 +21,10 @@ fn check_entries(path: &Path, bad: &mut bool) {
// Use special values for these dirs.
let is_root = path.join("test/ui") == dir_path;
let is_issues_dir = path.join("test/ui/issues") == dir_path;
let is_parser = path.join("test/ui/parser") == dir_path;
let limit = if is_root {
ROOT_ENTRY_LIMIT
} else if is_issues_dir {
ISSUES_ENTRY_LIMIT
} else if is_parser {
PARSER_LIMIT
} else {
ENTRY_LIMIT
};