diff --git a/test/Project.toml b/test/Project.toml index 58a80fd..24e928b 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,4 +1,5 @@ [deps] +Convex = "f65535da-76fb-5f13-bab9-19810c17039a" Krylov = "ba0b0d4f-ebba-5204-a429-3ac8c609bfb7" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" @@ -7,4 +8,5 @@ TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] +Convex = "0.14" Krylov = "0.7.7" diff --git a/test/runtests.jl b/test/runtests.jl index c6bb783..5b673c1 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,6 +2,7 @@ using LinearAlgebra using SparseArrays using Test using TOML +using Convex using Tulip TLP = Tulip @@ -12,7 +13,7 @@ const TvTYPES = [Float32, Float64, BigFloat] # Check That Tulip.version() matches what's in the Project.toml tlp_ver = Tulip.version() -toml_ver = TOML.parsefile("../Project.toml")["version"] +toml_ver = TOML.parsefile(joinpath(@__DIR__, "..", "Project.toml"))["version"] @test tlp_ver == VersionNumber(toml_ver) @testset "Unit tests" begin @@ -47,14 +48,14 @@ end include("Interfaces/MOI_wrapper.jl") end -# @testset "Convex Problem Depot tests" begin -# for T in TvTYPES -# @testset "$T" begin -# Convex.ProblemDepot.run_tests(; exclude=[r"mip", r"exp", r"socp", r"sdp"], T = T) do problem -# Convex.solve!(problem, () -> Tulip.Optimizer{T}()) -# end -# end -# end -# end +@testset "Convex Problem Depot tests" begin + for T in TvTYPES + @testset "$T" begin + Convex.ProblemDepot.run_tests(; exclude=[r"mip", r"exp", r"socp", r"sdp"], T = T) do problem + Convex.solve!(problem, () -> Tulip.Optimizer{T}()) + end + end + end +end end # Tulip tests