https://github.com/JuliaLang/julia
Raw File
Tip revision: 85164250068bdccf7d22a7fea0d0a3fc55178d8d authored by Jameson Nash on 17 November 2015, 21:09:27 UTC
alternative structured approach to replace the REPL InterruptException hack
Tip revision: 8516425
parallel.jl
# This file is a part of Julia. License is MIT: http://julialang.org/license

# Run the parallel test outside of the main driver, since it runs off its own
# set of 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`

(strm, proc) = open(pipeline(cmd, stderr=STDERR))
cmdout = readall(strm)
wait(proc)
println(cmdout);
if !success(proc) && ccall(:jl_running_on_valgrind,Cint,()) == 0
    error("Parallel test failed, cmd : $cmd")
end
back to top