Skip to content

Commit 5b3662e

Browse files
committed
Add OCaml RootFS test
1 parent 99fbe0e commit 5b3662e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/rootfs.jl

+10
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ end
138138
@test_throws ErrorException choose_shards(platform; preferred_go_version = v"1.14", (common_opts)...)
139139
end
140140

141+
@testset "OCaml toolchain selection" begin
142+
platform = Platform("x86_64", "linux")
143+
common_opts = (preferred_gcc_version=v"9", compilers=[:c, :ocaml])
144+
145+
shards = choose_shards(platform; preferred_ocaml_version = v"5.4", (common_opts)... )
146+
@test filter(s-> s.name == "OCaml", shards)[end].version == v"5.4"
147+
148+
@test_throws ErrorException choose_shards(platform; preferred_ocaml_version = v"4.1", (common_opts)...)
149+
end
150+
141151
@testset "GCC ABI matching" begin
142152
# Preferred libgfortran version and C++ string ABI
143153
platform = Platform("x86_64", "freebsd")

0 commit comments

Comments
 (0)