Skip to content

Commit

Permalink
Use Regex to exclude tests (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Dec 14, 2023
1 parent a201d08 commit 68282ac
Showing 1 changed file with 60 additions and 61 deletions.
121 changes: 60 additions & 61 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,77 +54,76 @@ function test_runtests()
MOI.SolverVersion,
],
),
exclude = String[
exclude = Regex[
# ArgumentError: DSDP does not support problems with no constraint.
# See https://github.com/jump-dev/MathOptInterface.jl/issues/1741#issuecomment-1057286739
"test_solve_optimize_twice",
"test_solve_result_index",
"test_quadratic_nonhomogeneous",
"test_quadratic_integration",
"test_objective_ObjectiveFunction_constant",
"test_objective_ObjectiveFunction_VariableIndex",
"test_objective_FEASIBILITY_SENSE_clears_objective",
"test_modification_transform_singlevariable_lessthan",
"test_modification_set_singlevariable_lessthan",
"test_modification_delete_variables_in_a_batch",
"test_modification_delete_variable_with_single_variable_obj",
"test_modification_const_scalar_objective",
"test_modification_coef_scalar_objective",
"test_attribute_RawStatusString",
"test_attribute_SolveTimeSec",
"test_objective_ObjectiveFunction_blank",
"test_objective_ObjectiveFunction_duplicate_terms",
"test_solve_TerminationStatus_DUAL_INFEASIBLE",
r"test_solve_optimize_twice$",
r"test_solve_result_index$",
r"test_objective_ObjectiveFunction_constant$",
r"test_objective_ObjectiveFunction_VariableIndex$",
r"test_objective_FEASIBILITY_SENSE_clears_objective$",
r"test_modification_transform_singlevariable_lessthan$",
r"test_modification_set_singlevariable_lessthan$",
r"test_modification_delete_variables_in_a_batch$",
r"test_modification_delete_variable_with_single_variable_obj$",
r"test_modification_const_scalar_objective$",
r"test_modification_coef_scalar_objective$",
r"test_attribute_RawStatusString$",
r"test_attribute_SolveTimeSec$",
r"test_objective_ObjectiveFunction_blank$",
r"test_objective_ObjectiveFunction_duplicate_terms$",
r"test_solve_TerminationStatus_DUAL_INFEASIBLE$",
# TODO investigate
# Expression: MOI.get(model, MOI.TerminationStatus()) == config.infeasible_status
# Evaluated: MathOptInterface.OPTIMAL == MathOptInterface.INFEASIBLE
"test_conic_NormInfinityCone_INFEASIBLE",
"test_conic_NormOneCone_INFEASIBLE",
"test_conic_linear_INFEASIBLE",
"test_conic_linear_INFEASIBLE_2",
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_EqualTo_lower",
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_EqualTo_upper",
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_GreaterThan",
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_Interval_lower",
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_Interval_upper",
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_LessThan",
"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_VariableIndex_LessThan",
r"test_conic_NormInfinityCone_INFEASIBLE$",
r"test_conic_NormOneCone_INFEASIBLE$",
r"test_conic_linear_INFEASIBLE$",
r"test_conic_linear_INFEASIBLE_2$",
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_EqualTo_lower$",
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_EqualTo_upper$",
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_GreaterThan$",
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_Interval_lower$",
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_Interval_upper$",
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_LessThan$",
r"test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_VariableIndex_LessThan$",
# TODO investigate
# Incorrect result value
"test_conic_NormInfinityCone_3",
"test_conic_NormInfinityCone_VectorAffineFunction",
"test_conic_NormInfinityCone_VectorOfVariables",
"test_conic_NormOneCone",
"test_conic_NormOneCone_VectorAffineFunction",
"test_conic_NormOneCone_VectorOfVariables",
"test_conic_linear_VectorAffineFunction",
"test_conic_linear_VectorAffineFunction_2",
"test_conic_linear_VectorOfVariables",
"test_constraint_ScalarAffineFunction_Interval",
"test_linear_variable_open_intervals",
r"test_conic_NormInfinityCone_3$",
r"test_conic_NormInfinityCone_VectorAffineFunction$",
r"test_conic_NormInfinityCone_VectorOfVariables$",
r"test_conic_NormOneCone$",
r"test_conic_NormOneCone_VectorAffineFunction$",
r"test_conic_NormOneCone_VectorOfVariables$",
r"test_conic_linear_VectorAffineFunction$",
r"test_conic_linear_VectorAffineFunction_2$",
r"test_conic_linear_VectorOfVariables$",
r"test_conic_linear_VectorOfVariables_2$",
r"test_constraint_ScalarAffineFunction_Interval$",
r"test_linear_variable_open_intervals$",
# Incorrect objective
# See https://github.com/jump-dev/MathOptInterface.jl/issues/1759
"test_infeasible_MAX_SENSE",
"test_infeasible_MAX_SENSE_offset",
"test_infeasible_MIN_SENSE",
"test_infeasible_MIN_SENSE_offset",
"test_infeasible_affine_MAX_SENSE",
"test_infeasible_affine_MAX_SENSE_offset",
"test_infeasible_affine_MIN_SENSE",
"test_infeasible_affine_MIN_SENSE_offset",
"test_linear_Interval_inactive",
"test_linear_integration",
"test_linear_integration_Interval",
"test_linear_integration_delete_variables",
"test_linear_transform",
"test_modification_affine_deletion_edge_cases",
"test_modification_multirow_vectoraffine_nonpos",
"test_modification_set_scalaraffine_lessthan",
"test_variable_solve_with_lowerbound",
"test_variable_solve_with_upperbound",
r"test_infeasible_MAX_SENSE$",
r"test_infeasible_MAX_SENSE_offset$",
r"test_infeasible_MIN_SENSE$",
r"test_infeasible_MIN_SENSE_offset$",
r"test_infeasible_affine_MAX_SENSE$",
r"test_infeasible_affine_MAX_SENSE_offset$",
r"test_infeasible_affine_MIN_SENSE$",
r"test_infeasible_affine_MIN_SENSE_offset$",
r"test_linear_Interval_inactive$",
r"test_linear_integration$",
r"test_linear_integration_Interval$",
r"test_linear_integration_delete_variables$",
r"test_linear_transform$",
r"test_modification_affine_deletion_edge_cases$",
r"test_modification_multirow_vectoraffine_nonpos$",
r"test_modification_set_scalaraffine_lessthan$",
r"test_variable_solve_with_lowerbound$",
r"test_variable_solve_with_upperbound$",
# TODO: inaccurate solution
"test_linear_HyperRectangle_VectorAffineFunction",
"test_linear_HyperRectangle_VectorOfVariables",
r"test_linear_HyperRectangle_VectorAffineFunction$",
r"test_linear_HyperRectangle_VectorOfVariables$",
],
)
return
Expand Down

0 comments on commit 68282ac

Please sign in to comment.