@@ -16,10 +16,6 @@ juliafiles = ["test_cman_julia.jl"]
16
16
# Files to run with mpiexec -n 1
17
17
singlefiles = [" test_spawn.jl" ]
18
18
19
- excludedfiles = String[]
20
- if Sys. iswindows ()
21
- end
22
-
23
19
function runtests ()
24
20
nprocs = clamp (Sys. CPU_THREADS, 2 , 4 )
25
21
exename = joinpath (Sys. BINDIR, Base. julia_exename ())
@@ -29,37 +25,25 @@ function runtests()
29
25
30
26
extra_args = []
31
27
@static if ! Sys. iswindows ()
32
- if occursin ( " OpenRTE" , read (` mpiexec --version` , String))
28
+ if occursin ( " OpenRTE" , read (` mpiexec --version` , String))
33
29
push! (extra_args," --oversubscribe" )
34
30
end
35
31
end
36
32
37
33
nfail = 0
38
34
printstyled (" Running MPI.jl tests\n " ; color= :white )
39
35
for f in testfiles
40
- if f ∈ excludedfiles
41
- println (" Skipping disabled test $f " )
42
- continue
36
+ coverage_opt = coverage_opts[Base. JLOptions (). code_coverage]
37
+ if f ∈ singlefiles
38
+ run (` mpiexec $extra_args -n 1 $exename --code-coverage=$coverage_opt $(joinpath (testdir, f)) ` )
39
+ elseif f ∈ juliafiles
40
+ run (` $exename --code-coverage=$coverage_opt $(joinpath (testdir, f)) ` )
41
+ else
42
+ run (` mpiexec $extra_args -n $nprocs $exename --code-coverage=$coverage_opt $(joinpath (testdir, f)) ` )
43
+ end
44
+ Base. with_output_color (:green ,stdout ) do io
45
+ println (io," \t SUCCESS: $f " )
43
46
end
44
- # try
45
- coverage_opt = coverage_opts[Base. JLOptions (). code_coverage]
46
- if f ∈ singlefiles
47
- run (` mpiexec $extra_args -n 1 $exename --code-coverage=$coverage_opt $(joinpath (testdir, f)) ` )
48
- elseif f ∈ juliafiles
49
- run (` $exename --code-coverage=$coverage_opt $(joinpath (testdir, f)) ` )
50
- else
51
- run (` mpiexec $extra_args -n $nprocs $exename --code-coverage=$coverage_opt $(joinpath (testdir, f)) ` )
52
- end
53
- Base. with_output_color (:green ,stdout ) do io
54
- println (io," \t SUCCESS: $f " )
55
- end
56
- # catch ex
57
- # Base.with_output_color(:red,stderr) do io
58
- # println(io,"\tError: $(joinpath(testdir, f))")
59
- # showerror(io,ex,backtrace())
60
- # end
61
- # nfail += 1
62
- # end
63
47
end
64
48
return nfail
65
49
end
0 commit comments