Skip to content

Commit 68282ac

Browse files
authored
Use Regex to exclude tests (#28)
1 parent a201d08 commit 68282ac

File tree

1 file changed

+60
-61
lines changed

1 file changed

+60
-61
lines changed

test/MOI_wrapper.jl

Lines changed: 60 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -54,77 +54,76 @@ function test_runtests()
5454
MOI.SolverVersion,
5555
],
5656
),
57-
exclude = String[
57+
exclude = Regex[
5858
# ArgumentError: DSDP does not support problems with no constraint.
5959
# See https://github.com/jump-dev/MathOptInterface.jl/issues/1741#issuecomment-1057286739
60-
"test_solve_optimize_twice",
61-
"test_solve_result_index",
62-
"test_quadratic_nonhomogeneous",
63-
"test_quadratic_integration",
64-
"test_objective_ObjectiveFunction_constant",
65-
"test_objective_ObjectiveFunction_VariableIndex",
66-
"test_objective_FEASIBILITY_SENSE_clears_objective",
67-
"test_modification_transform_singlevariable_lessthan",
68-
"test_modification_set_singlevariable_lessthan",
69-
"test_modification_delete_variables_in_a_batch",
70-
"test_modification_delete_variable_with_single_variable_obj",
71-
"test_modification_const_scalar_objective",
72-
"test_modification_coef_scalar_objective",
73-
"test_attribute_RawStatusString",
74-
"test_attribute_SolveTimeSec",
75-
"test_objective_ObjectiveFunction_blank",
76-
"test_objective_ObjectiveFunction_duplicate_terms",
77-
"test_solve_TerminationStatus_DUAL_INFEASIBLE",
60+
r"test_solve_optimize_twice$",
61+
r"test_solve_result_index$",
62+
r"test_objective_ObjectiveFunction_constant$",
63+
r"test_objective_ObjectiveFunction_VariableIndex$",
64+
r"test_objective_FEASIBILITY_SENSE_clears_objective$",
65+
r"test_modification_transform_singlevariable_lessthan$",
66+
r"test_modification_set_singlevariable_lessthan$",
67+
r"test_modification_delete_variables_in_a_batch$",
68+
r"test_modification_delete_variable_with_single_variable_obj$",
69+
r"test_modification_const_scalar_objective$",
70+
r"test_modification_coef_scalar_objective$",
71+
r"test_attribute_RawStatusString$",
72+
r"test_attribute_SolveTimeSec$",
73+
r"test_objective_ObjectiveFunction_blank$",
74+
r"test_objective_ObjectiveFunction_duplicate_terms$",
75+
r"test_solve_TerminationStatus_DUAL_INFEASIBLE$",
7876
# TODO investigate
7977
# Expression: MOI.get(model, MOI.TerminationStatus()) == config.infeasible_status
8078
# Evaluated: MathOptInterface.OPTIMAL == MathOptInterface.INFEASIBLE
81-
"test_conic_NormInfinityCone_INFEASIBLE",
82-
"test_conic_NormOneCone_INFEASIBLE",
83-
"test_conic_linear_INFEASIBLE",
84-
"test_conic_linear_INFEASIBLE_2",
85-
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_EqualTo_lower",
86-
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_EqualTo_upper",
87-
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_GreaterThan",
88-
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_Interval_lower",
89-
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_Interval_upper",
90-
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_LessThan",
91-
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_VariableIndex_LessThan",
79+
r"test_conic_NormInfinityCone_INFEASIBLE$",
80+
r"test_conic_NormOneCone_INFEASIBLE$",
81+
r"test_conic_linear_INFEASIBLE$",
82+
r"test_conic_linear_INFEASIBLE_2$",
83+
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_EqualTo_lower$",
84+
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_EqualTo_upper$",
85+
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_GreaterThan$",
86+
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_Interval_lower$",
87+
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_Interval_upper$",
88+
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_LessThan$",
89+
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_VariableIndex_LessThan$",
9290
# TODO investigate
9391
# Incorrect result value
94-
"test_conic_NormInfinityCone_3",
95-
"test_conic_NormInfinityCone_VectorAffineFunction",
96-
"test_conic_NormInfinityCone_VectorOfVariables",
97-
"test_conic_NormOneCone",
98-
"test_conic_NormOneCone_VectorAffineFunction",
99-
"test_conic_NormOneCone_VectorOfVariables",
100-
"test_conic_linear_VectorAffineFunction",
101-
"test_conic_linear_VectorAffineFunction_2",
102-
"test_conic_linear_VectorOfVariables",
103-
"test_constraint_ScalarAffineFunction_Interval",
104-
"test_linear_variable_open_intervals",
92+
r"test_conic_NormInfinityCone_3$",
93+
r"test_conic_NormInfinityCone_VectorAffineFunction$",
94+
r"test_conic_NormInfinityCone_VectorOfVariables$",
95+
r"test_conic_NormOneCone$",
96+
r"test_conic_NormOneCone_VectorAffineFunction$",
97+
r"test_conic_NormOneCone_VectorOfVariables$",
98+
r"test_conic_linear_VectorAffineFunction$",
99+
r"test_conic_linear_VectorAffineFunction_2$",
100+
r"test_conic_linear_VectorOfVariables$",
101+
r"test_conic_linear_VectorOfVariables_2$",
102+
r"test_constraint_ScalarAffineFunction_Interval$",
103+
r"test_linear_variable_open_intervals$",
105104
# Incorrect objective
106105
# See https://github.com/jump-dev/MathOptInterface.jl/issues/1759
107-
"test_infeasible_MAX_SENSE",
108-
"test_infeasible_MAX_SENSE_offset",
109-
"test_infeasible_MIN_SENSE",
110-
"test_infeasible_MIN_SENSE_offset",
111-
"test_infeasible_affine_MAX_SENSE",
112-
"test_infeasible_affine_MAX_SENSE_offset",
113-
"test_infeasible_affine_MIN_SENSE",
114-
"test_infeasible_affine_MIN_SENSE_offset",
115-
"test_linear_Interval_inactive",
116-
"test_linear_integration",
117-
"test_linear_integration_Interval",
118-
"test_linear_integration_delete_variables",
119-
"test_linear_transform",
120-
"test_modification_affine_deletion_edge_cases",
121-
"test_modification_multirow_vectoraffine_nonpos",
122-
"test_modification_set_scalaraffine_lessthan",
123-
"test_variable_solve_with_lowerbound",
124-
"test_variable_solve_with_upperbound",
106+
r"test_infeasible_MAX_SENSE$",
107+
r"test_infeasible_MAX_SENSE_offset$",
108+
r"test_infeasible_MIN_SENSE$",
109+
r"test_infeasible_MIN_SENSE_offset$",
110+
r"test_infeasible_affine_MAX_SENSE$",
111+
r"test_infeasible_affine_MAX_SENSE_offset$",
112+
r"test_infeasible_affine_MIN_SENSE$",
113+
r"test_infeasible_affine_MIN_SENSE_offset$",
114+
r"test_linear_Interval_inactive$",
115+
r"test_linear_integration$",
116+
r"test_linear_integration_Interval$",
117+
r"test_linear_integration_delete_variables$",
118+
r"test_linear_transform$",
119+
r"test_modification_affine_deletion_edge_cases$",
120+
r"test_modification_multirow_vectoraffine_nonpos$",
121+
r"test_modification_set_scalaraffine_lessthan$",
122+
r"test_variable_solve_with_lowerbound$",
123+
r"test_variable_solve_with_upperbound$",
125124
# TODO: inaccurate solution
126-
"test_linear_HyperRectangle_VectorAffineFunction",
127-
"test_linear_HyperRectangle_VectorOfVariables",
125+
r"test_linear_HyperRectangle_VectorAffineFunction$",
126+
r"test_linear_HyperRectangle_VectorOfVariables$",
128127
],
129128
)
130129
return

0 commit comments

Comments
 (0)