Skip to content

Use regex for tests #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ function test_runtests()
@test model.optimizer.model.model_cache isa
MOI.Utilities.UniversalFallback{ECOS.OptimizerCache}
MOI.set(model, MOI.Silent(), true)
exclude = String[
exclude = [
# ZerosBridge does not support ConstraintDual. These are tested below in
# test_runtests_ZerosBridge
"test_conic_RotatedSecondOrderCone_INFEASIBLE_2",
"test_conic_linear_VectorOfVariables_2",
"test_linear_integration",
"test_quadratic_constraint_GreaterThan",
"test_quadratic_constraint_LessThan",
r"test_conic_RotatedSecondOrderCone_INFEASIBLE_2$",
r"test_conic_linear_VectorOfVariables_2$",
r"test_linear_integration$",
r"test_quadratic_constraint_GreaterThan$",
r"test_quadratic_constraint_LessThan$",
]
if Sys.WORD_SIZE == 32
# These tests fail on x86 Linux, returning ITERATION_LIMIT instead of
# proving {primal,dual}_INFEASIBLE.
push!(exclude, "test_conic_linear_INFEASIBLE")
push!(exclude, "test_solve_TerminationStatus_DUAL_INFEASIBLE")
push!(exclude, r"test_conic_linear_INFEASIBLE$")
push!(exclude, r"test_solve_TerminationStatus_DUAL_INFEASIBLE$")
end
MOI.Test.runtests(
model,
Expand Down Expand Up @@ -82,13 +82,13 @@ function test_runtests_ZerosBridge()
MOI.ObjectiveBound,
],
),
include = String[
include = [
# ZerosBridge does not support ConstraintDual
"test_conic_RotatedSecondOrderCone_INFEASIBLE_2",
"test_conic_linear_VectorOfVariables_2",
"test_linear_integration",
"test_quadratic_constraint_GreaterThan",
"test_quadratic_constraint_LessThan",
r"test_conic_RotatedSecondOrderCone_INFEASIBLE_2",
r"test_conic_linear_VectorOfVariables_2",
r"test_linear_integration",
r"test_quadratic_constraint_GreaterThan",
r"test_quadratic_constraint_LessThan",
],
)
return
Expand Down
Loading