File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ using Pkg
2+ Pkg. add (url= " https://github.com/christiangnrd/ParallelTestRunner.jl" , rev= " total_time" )
3+
14using ParallelTestRunner: runtests, parse_args
25import GPUArrays
36
47include (" testsuite.jl" )
58
6- const init_code = quote
9+ # const init_code = quote
10+ const init_worker_code = quote
711 using Test, JLArrays, SparseArrays
812
913 include (" testsuite.jl" )
@@ -18,11 +22,17 @@ const init_code = quote
1822 end
1923end
2024
25+ const init_code = quote
26+ using Test, JLArrays, SparseArrays
27+
28+ import Main: TestSuite
29+ end
30+
2131args = parse_args (ARGS )
2232
2333testsuite = Dict {String, Expr} ()
2434for AT in (:JLArray , :Array ), name in keys (TestSuite. tests)
2535 testsuite[" $(AT) /$name " ] = :(TestSuite. tests[$ name]($ AT))
2636end
2737
28- runtests (GPUArrays, ARGS ; init_code, testsuite)
38+ runtests (GPUArrays, ARGS ; init_code, init_worker_code, testsuite)
You can’t perform that action at this time.
0 commit comments