Run coretests and alloctests with cg_clif in CI
This commit is contained in:
parent
fadea8e0ba
commit
13970949d1
3 changed files with 28 additions and 22 deletions
|
@ -99,6 +99,32 @@ const BASE_SYSROOT_SUITE: &[TestCase] = &[
|
|||
runner.run_out_command("gen_block_iterate", &[]);
|
||||
}),
|
||||
TestCase::build_bin_and_run("aot.raw-dylib", "example/raw-dylib.rs", &[]),
|
||||
TestCase::custom("test.sysroot", &|runner| {
|
||||
apply_patches(
|
||||
&runner.dirs,
|
||||
"sysroot_tests",
|
||||
&runner.stdlib_source.join("library"),
|
||||
&SYSROOT_TESTS_SRC.to_path(&runner.dirs),
|
||||
);
|
||||
|
||||
SYSROOT_TESTS.clean(&runner.dirs);
|
||||
|
||||
// coretests and alloctests produce a bunch of warnings. When running
|
||||
// in rust's CI warnings are denied, so we have to override that here.
|
||||
let mut target_compiler = runner.target_compiler.clone();
|
||||
target_compiler.rustflags.push("--cap-lints=allow".to_owned());
|
||||
|
||||
if runner.is_native {
|
||||
let mut test_cmd = SYSROOT_TESTS.test(&target_compiler, &runner.dirs);
|
||||
test_cmd.args(["-p", "coretests", "-p", "alloctests", "--tests", "--", "-q"]);
|
||||
spawn_and_wait(test_cmd);
|
||||
} else {
|
||||
eprintln!("Cross-Compiling: Not running tests");
|
||||
let mut build_cmd = SYSROOT_TESTS.build(&target_compiler, &runner.dirs);
|
||||
build_cmd.args(["-p", "coretests", "-p", "alloctests", "--tests"]);
|
||||
spawn_and_wait(build_cmd);
|
||||
}
|
||||
}),
|
||||
];
|
||||
|
||||
pub(crate) static RAND_REPO: GitRepo = GitRepo::github(
|
||||
|
@ -146,27 +172,6 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
|
|||
spawn_and_wait(build_cmd);
|
||||
}
|
||||
}),
|
||||
TestCase::custom("test.sysroot", &|runner| {
|
||||
apply_patches(
|
||||
&runner.dirs,
|
||||
"sysroot_tests",
|
||||
&runner.stdlib_source.join("library"),
|
||||
&SYSROOT_TESTS_SRC.to_path(&runner.dirs),
|
||||
);
|
||||
|
||||
SYSROOT_TESTS.clean(&runner.dirs);
|
||||
|
||||
if runner.is_native {
|
||||
let mut test_cmd = SYSROOT_TESTS.test(&runner.target_compiler, &runner.dirs);
|
||||
test_cmd.args(["-p", "coretests", "-p", "alloctests", "--", "-q"]);
|
||||
spawn_and_wait(test_cmd);
|
||||
} else {
|
||||
eprintln!("Cross-Compiling: Not running tests");
|
||||
let mut build_cmd = SYSROOT_TESTS.build(&runner.target_compiler, &runner.dirs);
|
||||
build_cmd.args(["-p", "coretests", "-p", "alloctests", "--tests"]);
|
||||
spawn_and_wait(build_cmd);
|
||||
}
|
||||
}),
|
||||
TestCase::custom("test.regex", &|runner| {
|
||||
REGEX_REPO.patch(&runner.dirs);
|
||||
|
||||
|
|
|
@ -32,9 +32,9 @@ aot.issue-59326
|
|||
aot.neon
|
||||
aot.gen_block_iterate
|
||||
aot.raw-dylib
|
||||
test.sysroot
|
||||
|
||||
testsuite.extended_sysroot
|
||||
test.rust-random/rand
|
||||
test.sysroot
|
||||
test.regex
|
||||
test.portable-simd
|
||||
|
|
|
@ -12,6 +12,7 @@ edition = "2024"
|
|||
path = "lib.rs"
|
||||
test = false
|
||||
bench = false
|
||||
doc = false
|
||||
|
||||
[[test]]
|
||||
name = "coretests"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue