Skip to content

Commit

Permalink
Opt out cycle-related tests from wasm tests: ref ethereum#939
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Nak committed Oct 10, 2023
1 parent 6da8ccf commit 3b17efb
Showing 1 changed file with 35 additions and 26 deletions.
61 changes: 35 additions & 26 deletions crates/uitest/tests/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,42 @@ mod wasm {
use super::*;
use wasm_bindgen_test::wasm_bindgen_test;

#[dir_test(
dir: "$CARGO_MANIFEST_DIR/fixtures/ty/def",
glob: "*.fe",
postfix: "wasm"
)]
#[dir_test_attr(
#[wasm_bindgen_test]
)]
fn run_ty_def(fixture: Fixture<&str>) {
let mut driver = DriverDataBase::default();
let path = Path::new(fixture.path());
let top_mod = driver.top_mod_from_file(path, fixture.content());
driver.run_on_top_mod(top_mod);
mod def {
use super::*;

// TODO: we opt out the tests for type/alias/trait-infinite recursion checks. See https://github.com/ethereum/fe/issues/939 for more details.
#[dir_test(
dir: "$CARGO_MANIFEST_DIR/fixtures/ty/def",
glob: "*[!_cycle].fe",
postfix: "wasm"
)]
#[dir_test_attr(
#[wasm_bindgen_test]
)]
fn run_ty_def(fixture: Fixture<&str>) {
let mut driver = DriverDataBase::default();
let path = Path::new(fixture.path());
let top_mod = driver.top_mod_from_file(path, fixture.content());
driver.run_on_top_mod(top_mod);
}
}

#[dir_test(
dir: "$CARGO_MANIFEST_DIR/fixtures/ty/trait_bound",
glob: "*.fe",
postfix: "wasm"
)]
#[dir_test_attr(
#[wasm_bindgen_test]
)]
fn run_trait_bound(fixture: Fixture<&str>) {
let mut driver = DriverDataBase::default();
let path = Path::new(fixture.path());
let top_mod = driver.top_mod_from_file(path, fixture.content());
driver.run_on_top_mod(top_mod);
mod trait_bound {
use super::*;

#[dir_test(
dir: "$CARGO_MANIFEST_DIR/fixtures/ty/trait_bound",
glob: "*.fe",
postfix: "wasm"
)]
#[dir_test_attr(
#[wasm_bindgen_test]
)]
fn run_trait_bound(fixture: Fixture<&str>) {
let mut driver = DriverDataBase::default();
let path = Path::new(fixture.path());
let top_mod = driver.top_mod_from_file(path, fixture.content());
driver.run_on_top_mod(top_mod);
}
}
}

0 comments on commit 3b17efb

Please sign in to comment.