Browse Source

Use the test harness for the cranelift-tools::filetests test (#8373)

* Use libtest-mimic to make filetests behave like a normal test

* Skip using libtest-mimic

* Remove the explicit filetests test definition
pull/8376/head
Trevor Elliott 7 months ago
committed by GitHub
parent
commit
ff2f7ceb13
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      cranelift/Cargo.toml
  2. 3
      cranelift/tests/filetests.rs

5
cranelift/Cargo.toml

@ -16,11 +16,6 @@ workspace = true
name = "clif-util"
path = "src/clif-util.rs"
[[test]]
name = "filetests"
path = "tests/filetests.rs"
harness = false
[dependencies]
cfg-if = { workspace = true }
cranelift-codegen = { workspace = true, features = ["disas", "trace-log", "timing"] }

3
cranelift/tests/filetests.rs

@ -1,4 +1,5 @@
fn main() -> anyhow::Result<()> {
#[test]
fn filetests() -> anyhow::Result<()> {
// Run all the filetests in the following directories.
cranelift_filetests::run(false, false, &["filetests".into(), "docs".into()])?;
Ok(())

Loading…
Cancel
Save