-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathCoretests.py
More file actions
39 lines (30 loc) · 1.11 KB
/
Copy pathCoretests.py
File metadata and controls
39 lines (30 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python3
"""Build and measure upstream Rust coretests with rustc_codegen_jvm."""
from stdlib_test_harness import ROOT, SuiteConfig, run_suite
DEFAULT_IGNORED_TESTS = {
"fmt::num::test_format_int_exp_precision": (
"takes about 36 seconds in isolation, roughly as long as the rest of coretests"
),
"slice::select_nth_unstable": (
"exceeds two minutes in isolation during cubic slice-selection validation"
),
"unicode::to_casefold": (
"takes about 102 seconds in isolation while scanning Unicode code points"
),
}
CONFIG = SuiteConfig(
name="coretests",
description="Measure rustc_codegen_jvm against upstream Rust coretests",
source_directory="coretests",
cargo_test_target="coretests",
target_root=ROOT / "target" / "coretests",
patch_root=ROOT / "coretests" / "coretests-patches",
build_schema="coretests-build-v2",
default_ignored_tests=DEFAULT_IGNORED_TESTS,
java_options=("-XX:+UseParallelGC",),
default_jobs=8,
)
def main() -> int:
return run_suite(CONFIG)
if __name__ == "__main__":
raise SystemExit(main())