File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 138
138
@test_throws ErrorException choose_shards (platform; preferred_go_version = v " 1.14" , (common_opts). .. )
139
139
end
140
140
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
+
141
151
@testset " GCC ABI matching" begin
142
152
# Preferred libgfortran version and C++ string ABI
143
153
platform = Platform (" x86_64" , " freebsd" )
You can’t perform that action at this time.
0 commit comments