File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 99@testset " Docstrings" begin
1010 @test isempty (Docs. undocumented_names (LinearAlgebra))
1111end
12+
13+ @testset " versioninfo" begin
14+ vinfo = sprint (LinearAlgebra. versioninfo)
15+ @test occursin (" Threading:" , vinfo)
16+ @test occursin (r" Threads.threadpoolsize\(\) = [0-9]+" , vinfo)
17+ @test occursin (r" Threads.maxthreadid\(\) = [0-9]+" , vinfo)
18+ @test occursin (r" LinearAlgebra.BLAS.get_num_threads\(\) = [0-9]+" , vinfo)
19+ @test occursin (" Relevant environment variables:" , vinfo)
20+ vars = strip (split (vinfo, " Relevant environment variables:" )[end ])
21+ @test any (occursin (vars), [r" JULIA_NUM_THREADS = [0-9]+" , r" MKL_DYNAMIC = [0-9]+" ,
22+ r" MKL_NUM_THREADS = [0-9]+" ,
23+ r" OPENBLAS_NUM_THREADS = [0-9]+" ,
24+ r" GOTO_NUM_THREADS = [0-9]+" ,
25+ r" OMP_NUM_THREADS = [0-9]+" , r" \[ none\] " ])
26+ end
You can’t perform that action at this time.
0 commit comments