Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip Rust tests with unprivileged runners and unpacked shards #396

Merged
merged 1 commit into from
Dec 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion test/runners.jl
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,14 @@ end
# Run the testsuite as sanity check
@testset "testsuite" begin
mktempdir() do dir
ur = preferred_runner()(dir; platform=Platform("x86_64", "linux"; libc="glibc"), preferred_gcc_version=v"5", compilers=[:c, :rust, :go])
# Skip Rust tests when they are broken. Ref:
# https://github.com/JuliaPackaging/BinaryBuilderBase.jl/issues/395
compilers = if !BinaryBuilderBase.use_squashfs[] && get(ENV, "BINARYBUILDER_RUNNER", "") == "unprivileged"
[:c, :go]
else
[:c, :rust, :go]
end
ur = preferred_runner()(dir; platform=Platform("x86_64", "linux"; libc="glibc"), preferred_gcc_version=v"5", compilers)
# Make sure the runner platform is concrete even if the requested platform isn't
@test !isnothing(libgfortran_version(ur.platform))
@test !isnothing(cxxstring_abi(ur.platform))
Expand Down
Loading