Skip to content

Commit

Permalink
Only run integration tests on Linux x86-64, macOS, and Windows
Browse files Browse the repository at this point in the history
There's no point running these integration tests with other non-x86_64 archs
on Linux. I'm not sure exactly what Cross is doing under the hood, but the
tests all seem to end up using the x86-64 arch, not the target arch.
  • Loading branch information
autarch committed Mar 20, 2023
1 parent ec6ada6 commit 3c6bd14
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ubi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ impl PreservableTempdir {
}
}

// There's no point running these integration tests with other non-x86_64
// archs on Linux. I'm not sure exactly what Cross is doing under the hood,
// but the tests all seem to end up using the x86-64 arch, not the target
// arch.
#[cfg(any(
all(target_os = "linux", target_arch = "x86_64"),
target_os = "macos",
target_os = "windows"
))]
#[test]
fn tests() -> Result<()> {
let cargo = make_exe_pathbuf(&["cargo"]);
Expand Down

0 comments on commit 3c6bd14

Please sign in to comment.