4040export test_on_library, problems, dicts
4141end
4242
43- @testitem " PolyAlgorithms" setup= [RobustnessTesting] begin
43+ @testitem " PolyAlgorithms" setup= [RobustnessTesting] tags = [ :core ] begin
4444 alg_ops = (RobustMultiNewton (), FastShortcutNonlinearPolyalg ())
4545
4646 broken_tests = Dict (alg => Int[] for alg in alg_ops)
5050 test_on_library (problems, dicts, alg_ops, broken_tests)
5151end
5252
53- @testitem " NewtonRaphson" setup= [RobustnessTesting] begin
53+ @testitem " NewtonRaphson" setup= [RobustnessTesting] tags = [ :core ] begin
5454 alg_ops = (NewtonRaphson (),)
5555
5656 broken_tests = Dict (alg => Int[] for alg in alg_ops)
5959 test_on_library (problems, dicts, alg_ops, broken_tests)
6060end
6161
62- @testitem " TrustRegion" setup= [RobustnessTesting] begin
62+ @testitem " TrustRegion" setup= [RobustnessTesting] tags = [ :core ] begin
6363 alg_ops = (TrustRegion (; radius_update_scheme = RadiusUpdateSchemes. Simple),
6464 TrustRegion (; radius_update_scheme = RadiusUpdateSchemes. Fan),
6565 TrustRegion (; radius_update_scheme = RadiusUpdateSchemes. Hei),
7878 test_on_library (problems, dicts, alg_ops, broken_tests)
7979end
8080
81- @testitem " LevenbergMarquardt" setup= [RobustnessTesting] begin
81+ @testitem " LevenbergMarquardt" setup= [RobustnessTesting] tags = [ :core ] begin
8282 using LinearSolve
8383
8484 alg_ops = (LevenbergMarquardt (), LevenbergMarquardt (; α_geodesic = 0.1 ),
9292 test_on_library (problems, dicts, alg_ops, broken_tests)
9393end
9494
95- @testitem " DFSane" setup= [RobustnessTesting] begin
95+ @testitem " DFSane" setup= [RobustnessTesting] tags = [ :core ] begin
9696 alg_ops = (DFSane (),)
9797
9898 broken_tests = Dict (alg => Int[] for alg in alg_ops)
@@ -101,21 +101,28 @@ end
101101 test_on_library (problems, dicts, alg_ops, broken_tests)
102102end
103103
104- @testitem " Broyden" setup= [RobustnessTesting] begin
104+ @testitem " Broyden" setup= [RobustnessTesting] tags = [ :core ] begin
105105 alg_ops = (Broyden (), Broyden (; init_jacobian = Val (:true_jacobian )),
106106 Broyden (; update_rule = Val (:bad_broyden )),
107107 Broyden (; init_jacobian = Val (:true_jacobian ), update_rule = Val (:bad_broyden )))
108108
109109 broken_tests = Dict (alg => Int[] for alg in alg_ops)
110- broken_tests[alg_ops[1 ]] = [1 , 5 , 11 , 15 ]
111- broken_tests[alg_ops[2 ]] = [1 , 5 , 8 , 11 , 18 ]
112- broken_tests[alg_ops[3 ]] = [1 , 5 , 9 , 11 ]
113- broken_tests[alg_ops[4 ]] = [5 , 6 , 8 , 11 ]
110+ if Sys. isapple ()
111+ broken_tests[alg_ops[1 ]] = [1 , 5 , 11 ]
112+ broken_tests[alg_ops[2 ]] = [1 , 5 , 8 , 11 , 18 ]
113+ broken_tests[alg_ops[3 ]] = [1 , 5 , 6 , 9 , 11 ]
114+ broken_tests[alg_ops[4 ]] = [5 , 6 , 8 , 11 ]
115+ else
116+ broken_tests[alg_ops[1 ]] = [1 , 5 , 11 , 15 ]
117+ broken_tests[alg_ops[2 ]] = [1 , 5 , 8 , 11 , 18 ]
118+ broken_tests[alg_ops[3 ]] = [1 , 5 , 9 , 11 ]
119+ broken_tests[alg_ops[4 ]] = [5 , 6 , 8 , 11 ]
120+ end
114121
115- test_on_library (problems, dicts, alg_ops, broken_tests)
122+ test_on_library (problems, dicts, alg_ops, broken_tests, Sys . isapple () ? 1e-3 : 1e-4 )
116123end
117124
118- @testitem " Klement" retries= 5 setup= [RobustnessTesting] begin
125+ @testitem " Klement" retries= 5 setup= [RobustnessTesting] tags = [ :core ] begin
119126 alg_ops = (Klement (), Klement (; init_jacobian = Val (:true_jacobian_diagonal )))
120127
121128 broken_tests = Dict (alg => Int[] for alg in alg_ops)
125132 test_on_library (problems, dicts, alg_ops, broken_tests)
126133end
127134
128- @testitem " PseudoTransient" setup= [RobustnessTesting] begin
135+ @testitem " PseudoTransient" setup= [RobustnessTesting] tags = [ :core ] begin
129136 # PT relies on the root being a stable equilibrium for convergence, so it won't work on
130137 # most problems
131138 alg_ops = (PseudoTransient (),)
0 commit comments