Mark keccakf16 reparse test as slow. (#2095)

This commit is contained in:
chriseth
2024-11-15 14:35:08 +01:00
committed by GitHub
parent 8ad05b5074
commit 90952d077f

View File

@@ -21,6 +21,8 @@ fn build_reparse_test(kind: &str, dir: &str) {
build_tests(kind, dir, "", "reparse")
}
const SLOW_LIST: [&str; 1] = ["keccakf16_test"];
#[allow(clippy::print_stdout)]
fn build_tests(kind: &str, dir: &str, sub_dir: &str, name: &str) {
let sub_dir = if sub_dir.is_empty() {
@@ -47,10 +49,14 @@ fn build_tests(kind: &str, dir: &str, sub_dir: &str, name: &str) {
.strip_suffix(&format!(".{kind}"))
{
println!("cargo:rerun-if-changed={full_dir}/{relative_name}");
let ignore = SLOW_LIST
.contains(&test_name)
.then_some("#[ignore = \"Too slow\"]")
.unwrap_or_default();
write!(
test_file,
r#"
#[test]
#[test]{ignore}
fn {test_name}() {{
run_{name}_test("{dir}/{sub_dir}{relative_name}");
}}