Skip to content

Commit 2699c78

Browse files
committed
Update
1 parent 65e09fe commit 2699c78

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

test/MOI_wrapper.jl

+24-22
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ function runtests()
2222
end
2323

2424
function test_MOI_Test_cached()
25-
second_order_exclude = String[
26-
"test_conic_GeometricMeanCone_VectorAffineFunction",
27-
"test_conic_GeometricMeanCone_VectorAffineFunction_2",
28-
"test_conic_GeometricMeanCone_VectorOfVariables",
29-
"test_conic_GeometricMeanCone_VectorOfVariables_2",
30-
"test_conic_RotatedSecondOrderCone_INFEASIBLE_2",
31-
"test_conic_RotatedSecondOrderCone_VectorAffineFunction",
32-
"test_conic_RotatedSecondOrderCone_VectorOfVariables",
33-
"test_conic_RotatedSecondOrderCone_out_of_order",
34-
"test_conic_SecondOrderCone_Nonpositives",
35-
"test_conic_SecondOrderCone_Nonnegatives",
36-
"test_conic_SecondOrderCone_VectorAffineFunction",
37-
"test_conic_SecondOrderCone_VectorOfVariables",
38-
"test_conic_SecondOrderCone_out_of_order",
39-
"test_constraint_PrimalStart_DualStart_SecondOrderCone",
25+
second_order_exclude = [
26+
r"^test_conic_GeometricMeanCone_VectorAffineFunction$",
27+
r"^test_conic_GeometricMeanCone_VectorAffineFunction_2$",
28+
r"^test_conic_GeometricMeanCone_VectorOfVariables$",
29+
r"^test_conic_GeometricMeanCone_VectorOfVariables_2$",
30+
r"^test_conic_RotatedSecondOrderCone_INFEASIBLE_2$",
31+
r"^test_conic_RotatedSecondOrderCone_VectorAffineFunction$",
32+
r"^test_conic_RotatedSecondOrderCone_VectorOfVariables$",
33+
r"^test_conic_RotatedSecondOrderCone_out_of_order$",
34+
r"^test_conic_SecondOrderCone_Nonpositives$",
35+
r"^test_conic_SecondOrderCone_Nonnegatives$",
36+
r"^test_conic_SecondOrderCone_VectorAffineFunction$",
37+
r"^test_conic_SecondOrderCone_VectorOfVariables$",
38+
r"^test_conic_SecondOrderCone_out_of_order$",
39+
r"^test_constraint_PrimalStart_DualStart_SecondOrderCone$",
4040
]
4141
model =
4242
MOI.instantiate(KNITRO.Optimizer; with_bridge_type=Float64, with_cache_type=Float64)
@@ -51,19 +51,21 @@ function test_MOI_Test_cached()
5151
MOI.Test.runtests(
5252
model,
5353
config;
54-
exclude=String[
54+
exclude=Union{String,Regex}[
5555
# TODO(odow): this test is flakey.
56-
"test_cpsat_ReifiedAllDifferent",
56+
r"^test_cpsat_ReifiedAllDifferent$",
57+
# TODO(odow): investigate issue with bridges
58+
r"^test_basic_VectorNonlinearFunction_GeometricMeanCone$",
5759
# Returns OTHER_ERROR, which is also reasonable.
58-
"test_conic_empty_matrix",
60+
r"^test_conic_empty_matrix$",
5961
# Uses the ZerosBridge and ConstraintDual
60-
"test_conic_linear_VectorOfVariables_2",
62+
r"^test_conic_linear_VectorOfVariables_2$",
6163
# Returns ITERATION_LIMIT instead of DUAL_INFEASIBLE, which is okay.
62-
"test_linear_DUAL_INFEASIBLE",
64+
r"^test_linear_DUAL_INFEASIBLE$",
6365
# Incorrect ObjectiveBound with an LP, but that's understandable.
64-
"test_solve_ObjectiveBound_MAX_SENSE_LP",
66+
r"^test_solve_ObjectiveBound_MAX_SENSE_LP$",
6567
# KNITRO doesn't support INFEASIBILITY_CERTIFICATE results.
66-
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_",
68+
r"^test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_$",
6769
# ConstraintDual not supported for SecondOrderCone
6870
second_order_exclude...,
6971
],

0 commit comments

Comments
 (0)