Run Pkg.test with several processors


#1

I have tests that use several processors. If I run julia -p 4 and then Pkg.test I only get 1 as a worker.


#2

For now, you have to handroll your parallellization (see https://github.com/JuliaStats/Distributions.jl/blob/master/test/runtests.jl). There’s been some work towards exposing the test infrastructure that Base uses to run the tests to packages, but it isn’t ready yet (and might not happen).


#3

Looking at either the link you provide or my CPU load, it does not seem that the tests run in parallel?


#4

Sorry, what is your question?


#5

If the link is correct? I guess the link is supposed to point to a test suite that runs in parallel? Was there maybe an old version of Distributions, with parallel test suite?


#6

You can have a look at our solver:

Unfortunately currently only properly working in julia v0.6 but that part should be the same


#7

Yeah, it was removed in https://github.com/JuliaStats/Distributions.jl/commit/84d6b39c3ccb014b6753909a4e1ef60f9339edbb#diff-fce720c43af3c52c862fd7451c7374b8. I should have linked to the file at a specific commmit.


#8

Do you know why it was removed? Is it fragile, does it produce bad error messages? I experimented with similar things as in Distributions.jl, but it was always fragile.


#9

Okay thanks. I am looking for something different however. Very much like the situation in Distributions.jl. Run many include("test_foo.jl") in parallel.