Skip to content

Commit

Permalink
Smoke test /base and /test from JuliaLang/julia
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Aug 1, 2024
1 parent 3474907 commit cab6812
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -933,3 +933,20 @@ end
"begin\n $(otriple)\n a\\\n b\n $(ctriple)\nend"
end
end


const share_julia = joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia")
if Sys.isunix() && isdir(share_julia)
@testset "JuliaLang/julia" begin
for testfolder in joinpath.(share_julia, ("base", "test"))
for (root, _, files) in walkdir(testfolder)
for file in files
endswith(file, ".jl") || continue
path = joinpath(root, file)
# @show path
@test Runic.format_file(path, "/dev/null") === nothing
end
end
end
end
end

0 comments on commit cab6812

Please sign in to comment.