Skip to content

Commit

Permalink
test: sysimage with multiple cpu-targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ven-k committed Feb 27, 2023
1 parent f9ba09a commit 70b36e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,20 @@ let exename = `$(Base.julia_cmd()) --startup-file=no --color=no`
--cpu-target='generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)'
--pkgimages=yes`)


# Sysimage with multiple cpu targets
@testset "Sysimage for multiple microarchitecture" begin
sysimage= unsafe_string(Base.JLOptions().image_file)
outputo_file = tempname()
write(outputo_file, "1")
object_file = tempname() * ".o"
@test success(`$exename
--sysimage=$sysimage
--cpu-target='generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)'
--output-o=$object_file $outputo_file
--pkgimages=no`)
end

# --worker takes default / custom as argument (default/custom arguments
# tested in test/parallel.jl)
@test errors_not_signals(`$exename --worker=true`)
Expand Down

0 comments on commit 70b36e6

Please sign in to comment.