File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -610,6 +610,12 @@ function autobuild(dir::AbstractString,
610
610
error (" Invalid dependency specifications!" )
611
611
end
612
612
613
+ # If the user passed in a src_version with a build number, bail out
614
+ if src_version. build != ()
615
+ error (" Will not build with a `src_version` that has a build number already specified!" )
616
+ end
617
+ @show src_version
618
+
613
619
# We must prepare our sources. Download them, hash them, etc...
614
620
sources = download_sources (sources; verbose= verbose)
615
621
Original file line number Diff line number Diff line change @@ -197,8 +197,9 @@ shards_to_test = expand_cxxstring_abis(expand_gfortran_versions(shards_to_test))
197
197
end
198
198
end
199
199
200
- @testset " Dependency Specification " begin
200
+ @testset " Invalid Arguments " begin
201
201
mktempdir () do build_path
202
+ # Test that invalid JLL names both @warn and error()
202
203
@test_logs (:warn , r" BadDependency_jll" ) (:warn , r" WorseDependency_jll" ) match_mode= :any begin
203
204
@test_throws ErrorException autobuild (
204
205
build_path,
207
208
# No sources
208
209
[],
209
210
" true" ,
210
- [platform ],
211
- [ ExecutableProduct ( " foo " , :foo ) ],
211
+ [platform_key_abi () ],
212
+ Product[ ],
212
213
# Three dependencies; one good, two bad
213
214
[
214
215
" Zlib_jll" ,
218
219
]
219
220
)
220
221
end
222
+
223
+ # Test that manually specifying a build number in our src_version is an error()
224
+ @test_throws ErrorException autobuild (
225
+ build_path,
226
+ " badopenssl" ,
227
+ v " 1.1.1+c" ,
228
+ [],
229
+ " true" ,
230
+ [platform_key_abi ()],
231
+ Product[],
232
+ [],
233
+ )
221
234
end
222
235
end
236
+
You can’t perform that action at this time.
0 commit comments