Skip to content

Commit

Permalink
Don't use libtest harness for filetests (#4655)
Browse files Browse the repository at this point in the history
We are using our own test harness for filetests and embedding it in
libtest isn't useful. It only hides test output until the end and
results in unnecessary noise.
  • Loading branch information
bjorn3 authored Aug 10, 2022
1 parent 918debf commit 54f9587
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ edition = "2021"
name = "clif-util"
path = "src/clif-util.rs"

[[test]]
name = "filetests"
path = "tests/filetests.rs"
harness = false

[dependencies]
cfg-if = "1.0"
cranelift-codegen = { path = "codegen", version = "0.88.0" }
Expand Down
7 changes: 3 additions & 4 deletions cranelift/tests/filetests.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#[test]
fn filetests() {
fn main() -> anyhow::Result<()> {
// Run all the filetests in the following directories.
cranelift_filetests::run(false, false, &["filetests".into(), "docs".into()])
.expect("test harness");
cranelift_filetests::run(false, false, &["filetests".into(), "docs".into()])?;
Ok(())
}

0 comments on commit 54f9587

Please sign in to comment.