forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parallel.jl
18 lines (14 loc) · 683 Bytes
/
parallel.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file is a part of Julia. License is MIT: http:https://julialang.org/license
# Run the parallel test outside of the main driver since it needs its own
# set of dedicated workers.
inline_flag = Base.JLOptions().can_inline == 1 ? `` : `--inline=no`
cov_flag = ``
if Base.JLOptions().code_coverage == 1
cov_flag = `--code-coverage=user`
elseif Base.JLOptions().code_coverage == 2
cov_flag = `--code-coverage=all`
end
cmd = `$(Base.julia_cmd()) $inline_flag $cov_flag --check-bounds=yes --depwarn=error parallel_exec.jl`
if !success(pipeline(cmd; stdout=STDOUT, stderr=STDERR)) && ccall(:jl_running_on_valgrind,Cint,()) == 0
error("Parallel test failed, cmd : $cmd")
end