File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ if GROUP == "All" || GROUP == "Core"
1818 @time @safetestset " ForwardDiff Overloads" include (" forwarddiff_overloads.jl" )
1919 @time @safetestset " Traits" include (" traits.jl" )
2020 @time @safetestset " BandedMatrices" include (" banded.jl" )
21+ @time @safetestset " Verbosity" include (" verbosity.jl" )
2122end
2223
2324# Don't run Enzyme tests on prerelease
Original file line number Diff line number Diff line change 1+ using LinearSolve
2+ using LinearSolve: LinearVerbosity
3+ using SciMLVerbosity: Verbosity
4+ using Logging
5+ using Test
6+
7+ A = [1.0 0 0 0
8+ 0 1 0 0
9+ 0 0 1 0
10+ 0 0 0 0 ]
11+ b = rand (4 )
12+ prob = LinearProblem (A, b)
13+
14+ @test_logs (:warn , " Falling back to LU factorization" ) solve (prob, verbose = LinearVerbosity (default_lu_fallback = Verbosity. Warn ()))
15+
16+ @test_logs (:info , " Falling back to LU factorization" ) solve (prob, verbose = LinearVerbosity (default_lu_fallback = Verbosity. Info ()))
17+
18+ @test_logs min_level = Logging. Info solve (prob, verbose = LinearVerbosity (Verbosity. None ()))
You can’t perform that action at this time.
0 commit comments