Skip to content

Commit

Permalink
Fix tests to use newer julia that supports --code-coverage=at-path
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Nov 6, 2024
1 parent 3510df4 commit 18384bd
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,16 @@ mktempdir() do tmpdir; mktempdir() do depot
@test isempty(read(stdout, String))
@test occursin("Error: IOError: could not spawn `juliafoobar", read(stderr, String))
if Sys.islinux() && get(ENV, "CI", nothing) == "true"
julia11 = download_release(v"1.1.1")
@test success(pipeline(`$(test_cmd) --julia=$(julia11) --version`, stdout=stdout, stderr=stderr))
@test occursin(", julia version 1.1.1", read(stdout, String))
vnum = v"1.9.4"
other_julia = download_release(vnum)
@test success(pipeline(`$(test_cmd) --julia=$(other_julia) --version`, stdout=stdout, stderr=stderr))
@test occursin(", julia version $(vnum)", read(stdout, String))
@test isempty(read(stderr, String))
@test success(pipeline(`$(test_cmd) --julia=$(this_julia) --julia=$(julia11) --version`, stdout=stdout, stderr=stderr))
@test occursin(", julia version 1.1.1", read(stdout, String))
@test success(pipeline(`$(test_cmd) --julia=$(this_julia) --julia=$(other_julia) --version`, stdout=stdout, stderr=stderr))
@test occursin(", julia version $(vnum)", read(stdout, String))
@test isempty(read(stderr, String))
@test success(pipeline(`$(test_cmd) --color=auto --julia=$(julia11) --version`, stdout=stdout, stderr=stderr))
@test occursin(", julia version 1.1.1", read(stdout, String))
@test success(pipeline(`$(test_cmd) --color=auto --julia=$(other_julia) --version`, stdout=stdout, stderr=stderr))
@test occursin(", julia version $(vnum)", read(stdout, String))
@test isempty(read(stderr, String))
end
end
Expand Down

0 comments on commit 18384bd

Please sign in to comment.