Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 14, 2023
1 parent bd87206 commit 485ede8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ if get(ENV, "BUILDKITE", "false") == "true"
exit(0)
end

using Test
using SCS

solvers_to_test = [SCS.DirectSolver, SCS.IndirectSolver]

if Sys.islinux() && Sys.ARCH == :x86_64
@static if Sys.islinux() && Sys.ARCH == :x86_64
import Pkg
Pkg.add("SCS_MKL_jll")
using SCS_MKL_jll
end

using Test
using SCS

solvers_to_test = Any[SCS.DirectSolver, SCS.IndirectSolver]
if SCS.is_available(SCS.MKLDirectSolver)
push!(solvers_to_test, SCS.MKLDirectSolver)
else
@test !SCS.is_available(SCS.MKLDirectSolver)
end

include("test_problems.jl")
Expand Down

0 comments on commit 485ede8

Please sign in to comment.